Re: Serial Ports and Perl

2017-10-27 Thread Martin McCormick
Andy Smith  writes:
> Hi Martin,
> 
> I have been using it successfully for a long time, but all I do is
> read whole lines from the serial device like:
> 
> my $dev  = '/dev/ttyUSB0';
> my $port = Device::SerialPort->new($dev);
> 
> $port->baudrate(57600);
> $port->write_settings;
> 
> open my $fh, '<', $dev or die "Can't open $dev: $!";
> 
> while (<$fh>) {
> print "READ: $_\n";
> }
> 
> So, I am only using Device::SerialPort to configure the device,
> while all reading is done by treating it as a normal file.
> 
> I see you are using lookfor(), which I have never used before. From
> a brief look at:
> 
> 
> http://search.cpan.org/~cook/Device-SerialPort-1.002/SerialPort.pm#Methods_for_I/O_Processing
> 
> it seems you should be setting are_match() if you want lookfor() to
> match anything.

You are correct. After a good night's sleep and another
read in to perldoc Device::SerialPort, I found a directive one
can use as follows:

 if ($string_in = $PortObj->input) { PortObj->write($string_in); }
# simple echo with no control character processing

If one writes an infinite loop such as while (1) {
  if (my $c = $port->input) 
  {
print ("$c\n");
  }
}
all data being received by the device are echoed so you know it
is good so far.  That in itself saves a lot of trouble-shooting time. 

Thanks for helping me think a bit.

Martin McCormick



Re: Serial Ports and Perl

2017-10-26 Thread Richard Hector
On 27/10/17 15:38, Martin McCormick wrote:
>   A perldoc of Device::SerialPort says that lookfor is
> supposed to block or hold until a character string emerges from
> the port as in /dev/ttyUSB0 or /dev/ttyS1.  When I trace the
> code, it just loops as fast as it can and never holds to wait for
> anything.

From my reading, if you call lookfor without any arguments, it will not
block, but poll the device and return immediately. Examples using that
behaviour have a sleep to stop it running away.

If you want the blocking behaviour, give it the number of characters
you're waiting for, and it will return only when it gets them.

I'm looking at

http://search.cpan.org/~cook/Device-SerialPort/1.04/SerialPort.pm#Methods_for_I/O_Processing

Richard



signature.asc
Description: OpenPGP digital signature


Re: Serial Ports and Perl

2017-10-26 Thread Martin McCormick
Andy Smith  writes:
> Hi Martin,

> I have been using it successfully for a long time, but all I do is
> read whole lines from the serial device like:
> 
> my $dev  = '/dev/ttyUSB0';
> my $port = Device::SerialPort->new($dev);
> 
> $port->baudrate(57600);
> $port->write_settings;
> 
> open my $fh, '<', $dev or die "Can't open $dev: $!";
> 

> while (<$fh>) {
> print "READ: $_\n";
> }
> 
> So, I am only using Device::SerialPort to configure the device,
> while all reading is done by treating it as a normal file.
> 
> I see you are using lookfor(), which I have never used before. From
> a brief look at:
> 
> 
> http://search.cpan.org/~cook/Device-SerialPort-1.002/SerialPort.pm#Methods_for_I/O_Processing
> 
> it seems you should be setting are_match() if you want lookfor() to
> match anything.
> 
> Cheers,
> Andy

I think I am going to call it a day and jump back on it in the
morning but opening the device is something I failed to do.  A
whole new rabit hole to go down and I wouldn't be surprised if
that wasn't the problem all along.

A perldoc of Device::SerialPort says that lookfor is
supposed to block or hold until a character string emerges from
the port as in /dev/ttyUSB0 or /dev/ttyS1.  When I trace the
code, it just loops as fast as it can and never holds to wait for
anything.  I thought this was strange and if I should have opened
the device, this may explain all the weirdness.  One of the
examples I saw did have a close statement on the device.  I bet I
just missed the need to open a file handle.

Thanks.  I'll post a message if that worked.

Martin McCormick



Re: Serial Ports and Perl

2017-10-26 Thread Fred

On 10/26/2017 05:37 PM, Martin McCormick wrote:

The perl list I subscribe to seems to be on the fritz or I would
take the question there.  I want to write code that receives from
a RS-232 port and I just can't seem to get it to do anything.

The port I am reading is connected to a scanner radio and
produces generally short lines of text such as CD13, - or +, each
followed by a carriage return so these data should be very easy
to read.

If I use the kermit program, I do see the data when the
radio receives a signal but if I run the following script which
should hold and wait for some data, it holds and waits forever
even when data are present

#!/usr/bin/perl -w
use strict;
use Device::SerialPort;

sub comm {#serialport

my $port = Device::SerialPort->new("/dev/ttyUSB0");
$port->baudrate(9600); # Configure this to match your device
$port->databits(8);
$port->parity("none");
$port->stopbits(1);
$port->handshake("none");
$port->write_settings;
#This is supposed to flush the buffers.
$port->lookclear;
#This causes an infinite loop so it should hang and receive
#characters.
while (1) {
my $char = $port->lookfor;
#When there is nothing, go back and keep retrying.
 if ($char) {
print "$char\n";
}
}
return;
}#serial port

#Call the subroutine.

comm;

If this was working, it would show a column of all the
ASCII characters being received.  /dev/ttyUSB0 is a valid device
and works when used with kermit or even a C program I wrote.

If anybody has gotten the perl Device::SerialPort to
work, I am interested to know what I am doing or not doing.

Thank you for any constructive ideas.

Martin McCormick  WB5AGZ


Some years ago I used Perl for driving a pen plotter and I believe I 
used it for some input function also.  Unix considers devices to be more 
or less the same as files so the serial port was accessed the same as a 
file would be.


$port = "/dev/sts/ttyp02";
open (PLOTTER,">$port")  || die "something or other:$!\n";
This would open it for writing.  You are using "sane" parameters that 
serial ports default to so you wouldn't need to specify them.

Best regards,
Fred Boatwright




Re: Serial Ports and Perl

2017-10-26 Thread Henning Follmann
On Thu, Oct 26, 2017 at 07:37:07PM -0500, Martin McCormick wrote:
> The perl list I subscribe to seems to be on the fritz or I would
> take the question there.  I want to write code that receives from
> a RS-232 port and I just can't seem to get it to do anything.
> 
>   The port I am reading is connected to a scanner radio and
> produces generally short lines of text such as CD13, - or +, each
> followed by a carriage return so these data should be very easy
> to read.
> 
>   If I use the kermit program, I do see the data when the
> radio receives a signal but if I run the following script which
> should hold and wait for some data, it holds and waits forever
> even when data are present
> 
> #!/usr/bin/perl -w
> use strict;
> use Device::SerialPort;
> 
> sub comm {#serialport
> 
> my $port = Device::SerialPort->new("/dev/ttyUSB0");
> $port->baudrate(9600); # Configure this to match your device
> $port->databits(8);
> $port->parity("none");
> $port->stopbits(1);
>$port->handshake("none");
>$port->write_settings;
> #This is supposed to flush the buffers.
> $port->lookclear;
> #This causes an infinite loop so it should hang and receive
> #characters.
> while (1) {
>my $char = $port->lookfor;
> #When there is nothing, go back and keep retrying.
> if ($char) {
>print "$char\n";
> }
>}
> return;
> }#serial port
> 
> #Call the subroutine.
> 
> comm;
> 
>   If this was working, it would show a column of all the
> ASCII characters being received.  /dev/ttyUSB0 is a valid device
> and works when used with kermit or even a C program I wrote.
> 
>   If anybody has gotten the perl Device::SerialPort to
> work, I am interested to know what I am doing or not doing.
> 
>   Thank you for any constructive ideas.
> 
> Martin McCormick  WB5AGZ
>

This is a good starting point:
http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/
It is not perl centric (c in fact). But it tells you the general basics for
serial communication.

-H 

-- 
Henning Follmann   | hfollm...@itcfollmann.com



Re: Serial Ports and Perl

2017-10-26 Thread Andy Smith
Hi Martin,

On Thu, Oct 26, 2017 at 07:37:07PM -0500, Martin McCormick wrote:
>   If anybody has gotten the perl Device::SerialPort to
> work, I am interested to know what I am doing or not doing.

I have been using it successfully for a long time, but all I do is
read whole lines from the serial device like:

my $dev  = '/dev/ttyUSB0';
my $port = Device::SerialPort->new($dev);

$port->baudrate(57600);
$port->write_settings;

open my $fh, '<', $dev or die "Can't open $dev: $!";

while (<$fh>) {
print "READ: $_\n";
}

So, I am only using Device::SerialPort to configure the device,
while all reading is done by treating it as a normal file.

I see you are using lookfor(), which I have never used before. From
a brief look at:


http://search.cpan.org/~cook/Device-SerialPort-1.002/SerialPort.pm#Methods_for_I/O_Processing

it seems you should be setting are_match() if you want lookfor() to
match anything.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Serial Ports and Perl

2017-10-26 Thread Martin McCormick
The perl list I subscribe to seems to be on the fritz or I would
take the question there.  I want to write code that receives from
a RS-232 port and I just can't seem to get it to do anything.

The port I am reading is connected to a scanner radio and
produces generally short lines of text such as CD13, - or +, each
followed by a carriage return so these data should be very easy
to read.

If I use the kermit program, I do see the data when the
radio receives a signal but if I run the following script which
should hold and wait for some data, it holds and waits forever
even when data are present

#!/usr/bin/perl -w
use strict;
use Device::SerialPort;

sub comm {#serialport

my $port = Device::SerialPort->new("/dev/ttyUSB0");
$port->baudrate(9600); # Configure this to match your device
$port->databits(8);
$port->parity("none");
$port->stopbits(1);
   $port->handshake("none");
   $port->write_settings;
#This is supposed to flush the buffers.
$port->lookclear;
#This causes an infinite loop so it should hang and receive
#characters.
while (1) {
   my $char = $port->lookfor;
#When there is nothing, go back and keep retrying.
if ($char) {
   print "$char\n";
}
   }
return;
}#serial port

#Call the subroutine.

comm;

If this was working, it would show a column of all the
ASCII characters being received.  /dev/ttyUSB0 is a valid device
and works when used with kermit or even a C program I wrote.

If anybody has gotten the perl Device::SerialPort to
work, I am interested to know what I am doing or not doing.

Thank you for any constructive ideas.

Martin McCormick  WB5AGZ



Re: How to use serial ports?

2011-05-14 Thread Tapio Lehtonen

Chris Brennan kirjoitti:



Sorry if this is slightly OT, I've often wondered about using 
serial-console to access my 3 local headless servers here, Camaleón 
link was very useful for the software side of it, what about the 
hardware side, not the com devices, but what type of cabling is 
required? Just a F-F rs232/db9 cable? 



Null-modem cable. If you have a serial cable that came with a modem for 
example, that will not work.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dce3cec.6080...@dnainternet.net



Re: How to use serial ports?

2011-05-14 Thread Tapio Lehtonen

Chris Brennan kirjoitti:

On Fri, May 13, 2011 at 12:48 PM, Tapio Lehtonen tapio.lehto...@dnainternet.net 
mailto:tapio.lehto...@dnainternet.net wrote:

Did not check BIOS for port settings, I supposed ports are enabled
since dmesg and setserial show the port.

Now I did check BIOS settings. Only one serial port was enabled, I now 
enabled both just for the heck of it. But I suspect the reason the one 
port did not work was a PCI slot using the same interrupt. I changed the 
interrupts and now both serial ports work, checked with kermit and 
gtkterm. Also getty allows logging in from ttyS0.


So thanks for suggesting checking BIOS settings.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dcea509.6030...@dnainternet.net



Re: How to use serial ports?

2011-05-14 Thread Doug

On 05/14/2011 11:51 AM, Tapio Lehtonen wrote:

Chris Brennan kirjoitti:
On Fri, May 13, 2011 at 12:48 PM, Tapio Lehtonen 
tapio.lehto...@dnainternet.net 
mailto:tapio.lehto...@dnainternet.net wrote:


Did not check BIOS for port settings, I supposed ports are enabled
since dmesg and setserial show the port.

Now I did check BIOS settings. Only one serial port was enabled, I now 
enabled both just for the heck of it. But I suspect the reason the one 
port did not work was a PCI slot using the same interrupt. I changed 
the interrupts and now both serial ports work, checked with kermit and 
gtkterm. Also getty allows logging in from ttyS0.


So thanks for suggesting checking BIOS settings.


How do you change interrupts?  One of my pci slots shares an interrupt 
with the on-board sound, so I avoid using it.

--doug

--
Blessed are the peacekeepers...for they shall be shot at from both sides. --A. 
M. Greeley


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dcedcb1.1050...@optonline.net



Re (2): How to use serial ports?

2011-05-14 Thread peasthope
Tapio,

From:   Tapio Lehtonen tapio.lehto...@dnainternet.net
Date:   Sat, 14 May 2011 18:51:37 +0300
 I changed the interrupts and now both serial ports work, ...

One more detail.
Typically com1 will have a DE-9 connector soldered to the mainboard 
and com2 has a 9 or 10 pin header on the board.  There is more 
than one arrangement of the pins of the header.  If the wrong ribbon 
cable from the header to the DE-9 is installed, com2 won't work.  
Mentioned as a footnote to the table here.
  http://pinouts.ru/SerialPorts/Serial9_pinout.shtml
Something to watch for on a machine which has been monkeyed with.

Regards,   ... Peter E.


-- 
Telephone 1 360 450 2132.  bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/171057006.83031.72188@heaviside.invalid



How to use serial ports?

2011-05-13 Thread Tapio Lehtonen
I try to connect two pc hosts with serial ports with a null modem cable. 
I assumed starting kermit on both ends, setting line, speed etc. to 
suitable values would allow me to see what I type on the other end. But 
no such luck.


I admit it is 9 years since I last used serial ports for anything, but 
at those far away times I got them working. Is there now something that 
must be set up or turned on to use serial ports?


I use Debian GNU/Linux Squeeze, ckermit. I tried also with gtkterm to 
rule out ckermit as the not working part.


   Tapio Lehtonen


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dcd2c5e@dnainternet.net



Re: How to use serial ports?

2011-05-13 Thread Frank Miles

Serial ports can be pretty opaque.

Do you know if both serial ports were enabled in your BIOS?  Can you find out 
if the relevant ports appear enabled in the system logs?

Do you have any hardware diagnostic tools? i.e. one of those LED-based serial 
port monitors?

Do you have flow control (RTS/CTS) disabled?

HTH...


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
http://lists.debian.org/alpine.lrh.2.01.1105130801530.3...@homer02.u.washington.edu



Re: How to use serial ports?

2011-05-13 Thread peasthope
Tapio,

From:   Tapio Lehtonen tapio.lehto...@dnainternet.net
Date:   Fri, 13 May 2011 16:04:30 +0300
 I try to connect two pc hosts with serial ports with a null modem cable. 

PPP over a null modem and through modems and telephone lines have worked 
here for years.  Configurations here.
  http://carnot.yi.org/NetworksPage.html
mgetty provides ringback on the modem.  Otherwise plain getty should work.
  
Recently the Dalton machine was replaced with different hardware and a 
fresh installation of Squeeze.  PPP has yet to work.  Currently the null 
modem is giving this in /var/log/syslog.

May 13 08:56:14 dalton kernel: [   80.425375] PPP generic driver version 2.4.2
May 13 08:56:14 dalton pppd[2046]: The remote system is required to 
authenticate itself
May 13 08:56:14 dalton pppd[2046]: but I couldn't find any suitable secret 
(password) for it to use to do so.

Previously, PPP would refer to /etc/passwd but seems to have forgotten that.
A glitch between mgetty and pppd?  Something new in authentication?

 ... starting kermit on both ends, ...

I've never used kermit in linux.  In /etc/inittab on one machine you 
could start getty.  Then try a simple terminal emulator on the other machine.
If that fails check /var/log/syslog.

Regards, ... Peter E.



-- 
Telephone 1 360 450 2132.  bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/171057005.40538.36566@cantor.invalid



Re: How to use serial ports?

2011-05-13 Thread Camaleón
On Fri, 13 May 2011 16:04:30 +0300, Tapio Lehtonen wrote:

 I try to connect two pc hosts with serial ports with a null modem cable.
 I assumed starting kermit on both ends, setting line, speed etc. to
 suitable values would allow me to see what I type on the other end. But
 no such luck.

(...)

This may help:

Debian Linux: Set a Serial Console
http://www.cyberciti.biz/faq/howto-setup-serial-console-on-debian-linux/

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.05.13.17.04...@gmail.com



Re: How to use serial ports?

2011-05-13 Thread Tapio Lehtonen
Did not check BIOS for port settings, I supposed ports are enabled since 
dmesg and setserial show the port.


root@phb:~# dmesg | grep -i tty
[0.00] console [tty0] enabled
[1.072850] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[1.073628] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
root@phb:~# setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
root@phb:~#

The computer has two serial ports, so I am a bit worried that only one 
shows in the above. Maybe the other is disabled in BIOS. I'll check next 
time I boot.


No breakout box or any such fancy stuff. The null modem cables I used 
did work last time I used them, if find it unlikely all of them would 
have broken when unused in the cupboard.


I tried both with and without RTS/CTS.

I added the user to group dialout, so the user can read and write to the 
/dev/ttyS0 device.



   Tapio Lehtonen


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dcd60d2.8030...@dnainternet.net



Re: How to use serial ports?

2011-05-13 Thread Chris Brennan
On Fri, May 13, 2011 at 12:48 PM, Tapio Lehtonen
tapio.lehto...@dnainternet.net wrote:

Did not check BIOS for port settings, I supposed ports are enabled since
 dmesg and setserial show the port.

 root@phb:~# dmesg | grep -i tty
 [0.00] console [tty0] enabled
 [1.072850] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
 [1.073628] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
 root@phb:~# setserial -g /dev/ttyS*
 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
 /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
 /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
 /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
 root@phb:~#

 The computer has two serial ports, so I am a bit worried that only one
 shows in the above. Maybe the other is disabled in BIOS. I'll check next
 time I boot.

 No breakout box or any such fancy stuff. The null modem cables I used did
 work last time I used them, if find it unlikely all of them would have
 broken when unused in the cupboard.

 I tried both with and without RTS/CTS.

 I added the user to group dialout, so the user can read and write to the
 /dev/ttyS0 device.


 Tapio Lehtonen



Sorry if this is slightly OT, I've often wondered about using serial-console
to access my 3 local headless servers here, Camaleón link was very useful
for the software side of it, what about the hardware side, not the com
devices, but what type of cabling is required? Just a F-F rs232/db9 cable?


-- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.

 Q: Why is top posting frowned upon?


Woody ... Squeeze, PPP works over a null modem; was Re (2): How to use serial ports?

2011-05-13 Thread peasthope
From:   peasth...@shaw.ca
Date:   Fri, 13 May 2011 09:57:26 -0800
 May 13 08:56:14 dalton pppd[2046]: but I couldn't find any suitable secret 
 (password) for it to use to do so.

 Previously, PPP would refer to /etc/passwd but seems to have forgotten that.

In setting up the fresh machine I put this in /etc/ppp/pap-secrets.
*   dalton1*
Should have revised to this when the previous machine was replaced.
*   dalton*

All the documentation in the world can't replace human memory.

So Tapio, a null modem still works.  Start with the simplest configuration 
and check all the details.  Then work your way up to your objective.

Regards, ... Peter E.



-- 
Telephone 1 360 450 2132.  bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/171057005.44328.43208@cantor.invalid



Re: IBM thinkpad A22 serial ports and debian

2009-02-09 Thread Emanoil Kotsev
John Lindsay wrote:

 I have installed Debian on my Thinkpad A22. Seems to be working fine
 except for the wireless.  I also have Wine installed as I want to run an
 executable program that downloads a file to an FTA receiver via the
 serial port. Do I need to 'turn on' the serial port under Linux or would
 it already be operational? I keep getting a Fail message when ever I try
 to download the bin. The FTA receiver is set to receive files via the
 serial port. Turning the receiver off and on and setting the unit to
 receive via the serial port doesn't make any difference.
 
 Hopefully some one can help.
 
 John

what you are trying to do will not help much.

don't know how good wine works with serial devices, but you should configure
wine to talk to your serial port (on linux) this would be /dev/ttyS[0-3]

the serial should be configured properly (according doc of the device) I
mean baud rate and so on (usually done with the setserial)

you can capture all data on a serial line without wine too, unless you need
a kind of windows app to talk to the device

regards


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



IBM thinkpad A22 serial ports and debian

2009-02-06 Thread John Lindsay
I have installed Debian on my Thinkpad A22. Seems to be working fine 
except for the wireless.  I also have Wine installed as I want to run an 
executable program that downloads a file to an FTA receiver via the 
serial port. Do I need to 'turn on' the serial port under Linux or would 
it already be operational? I keep getting a Fail message when ever I try 
to download the bin. The FTA receiver is set to receive files via the 
serial port. Turning the receiver off and on and setting the unit to 
receive via the serial port doesn't make any difference.


Hopefully some one can help.

John


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




No serial ports found after 2.6 kernel upgrade

2006-05-07 Thread Tony Terlecki
I upgraded my kernel a few weeks ago and, because I rarely use my serial
ports (only for the odd FAX), I never noticed they were missing until
today. I'm running 2.6.15 on a Testing build and have compiled in most
of the serial driver support for good measure, i.e.:

CONFIG_SERIAL_8250,
CONFIG_SERIAL_8250_ACPI
CONFIG_SERIAL_8250_EXTENDED
CONFIG_SERIAL_8250_MANY_PORTS
CONFIG_SERIAL_8250_SHARE_IRQ
CONFIG_SERIAL_8250_HUB6
CONFIG_SERIAL_8250_NR_UARTS=6

but still the serial ports are not detected on bootop. I also note that
whereas previously I had /dev/ttyS0 and /dev/ttyS1 they are now missing,
although I don't think those devices missing actually means that the
kernel won't find the hardware on boot.

Any ideas on how to proceed? When I boot into the old 2.4 kernel the
serial ports are identified without problem with following boot
information:

Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT
SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A

Maybe there is something outside of the serial drivers support I need to
include in the kernel build?

Thanks,

-- 
Tony Terlecki
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: No serial ports found after 2.6 kernel upgrade

2006-05-07 Thread Martin A. Brooks

Tony Terlecki wrote:

Maybe there is something outside of the serial drivers support I need to
include in the kernel build?


I'm running 2.6.15 with the following serial options:

myth:~# grep SERIAL /usr/src/linux/.config
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_RSA is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set

You don't mention if you're compiling these options statically or as 
modules.  If it's the latter, are you sure the modules are loading?


Regards


--

Martin A. Brooks |  http://www.antibodymx.net/ | Anti-spam  anti-virus
  Consultant|  [EMAIL PROTECTED]  | filtering. Inoculate
antibodymx.net  |  m: +4745888254 | your mail system.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: No serial ports found after 2.6 kernel upgrade

2006-05-07 Thread Tony Terlecki
On Sun, May 07, 2006 at 12:56:18PM +0200, Martin A. Brooks wrote:
 Tony Terlecki wrote:
 Maybe there is something outside of the serial drivers support I need to
 include in the kernel build?
 
 I'm running 2.6.15 with the following serial options:
 
 myth:~# grep SERIAL /usr/src/linux/.config
 # CONFIG_SERIAL_NONSTANDARD is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_NR_UARTS=4
 CONFIG_SERIAL_8250_RUNTIME_UARTS=4
 CONFIG_SERIAL_8250_EXTENDED=y
 # CONFIG_SERIAL_8250_MANY_PORTS is not set
 CONFIG_SERIAL_8250_SHARE_IRQ=y
 # CONFIG_SERIAL_8250_DETECT_IRQ is not set
 # CONFIG_SERIAL_8250_RSA is not set
 CONFIG_SERIAL_CORE=y
 CONFIG_SERIAL_CORE_CONSOLE=y
 # CONFIG_SERIAL_JSM is not set
 
 You don't mention if you're compiling these options statically or as 
 modules.  If it's the latter, are you sure the modules are loading?
 

Thanks for the pointer.

Some were static and some were loaded via modules. I've recompiled with
all of them statically in the kernel and that seems to have done the
trick. For some reason I thought that the modules would have been
automatically loaded on boot when probing for serial ports (shows how
little I know about module behaviour)!

Strangely now it is showing 4 serial ports although there are only 2 via
IRQ4 and IRQ3. Any idea why it is reporting this?

Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Cheers,

-- 
Tony Terlecki
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[Q] PCI card with serial ports giving trouble

2004-06-07 Thread Erich . Waelde
Hello all,

I have no good idea where to start, so I opted for this
list (after google and yahoo). Please CC me on any replies,
as I'm not on the list.

I use a PCI card with 4 serial (and 1 parallel) ports, namely 
an EXSYS 16950/954 card. The card is recognized by the kernel,
the ports (and whatever I hook onto the cables) can be accessed
ok --- at first sight.

I hook an embedded system's console to one of the cards ports,
and run minicom (or a script) to access the port. The embedded
system will react and give me a shell prompt. After some time
(minutes, but irregular) the following symptoms appear:

The screen is scrolling, listing text like
  ATZ: command  not found
or similar. Interestingly, if I had date as the last command, say,
the command seems to be rerun (the time changes). I also see
commands spawning processes being rerun resulting in several
new processes.

It seems to me as if the I/O-buffer on the card (128byte) is being sent
to the embedded system repeatedly.

I have moved the card from an i386 box to a powerpc box (excluding
ACPI as the culprit), I have exchanged minicom with a perl script, but 
the problem persists.

The problem goes away if I use the builtin serial port.
It could be a silly config problem, but I have no clue where to
look for what.

Any pointers are well appreciated!

Thanks in advance!
Erich

PS I'm running Debian Linux, 2.6.6 or 2.4.26 kernels on the ``host''
side
and uClinux on the embedded side.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Enabling Serial ports

2003-01-12 Thread Jacob S .
Yikes... I didn't realize how inexperienced I was with using my serial
ports in Linux until I started trying to play with a little Intrinsyc
CerfCube here. 

Kernel 2.4.18 with the serial module compiled into the kernel. 
dmesg | less shows mention of /dev/ttyS02 and /dev/ttyS03 on irq 4 and
3, respectively. But of course, /dev/ttyS02 and 03 don't exist in /dev.
I was thinking /dev/ttyS0 and /dev/ttyS1 would be more standard for
serial ports, but minicom can't seem to find anything on those ports,
even when logged in as root. 

Anyone have some pointers, or urls so I can read the documentation? I
did some brief looking through the kernel documentation, as well as a
google search for debian cerfcube, but didn't find much.

TIA,
Jacob

- 
GnuPG Key: 1024D/16377135

In a world without fences, who needs Gates?
http://www.linux.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Enabling Serial ports

2003-01-12 Thread nate
Jacob S. said:
 Yikes... I didn't realize how inexperienced I was with using my serial
 ports in Linux until I started trying to play with a little Intrinsyc
 CerfCube here.

 Kernel 2.4.18 with the serial module compiled into the kernel.
 dmesg | less shows mention of /dev/ttyS02 and /dev/ttyS03 on irq 4 and 3,

when the kernel says ttyS02 it means ttyS2

not sure why it spits out 02 instead of 2, but /dev/ttyS2 is correct.

most systems only have 2 serial ports, /dev/ttyS0 and /dev/ttyS1. be sure
they are enabled in the BIOS as well.

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Enabling Serial ports

2003-01-12 Thread Jacob S .
On Sun, 12 Jan 2003 21:15:30 -0800 (PST)
nate [EMAIL PROTECTED] wrote:

 Jacob S. said:
  Yikes... I didn't realize how inexperienced I was with using my
  serial ports in Linux until I started trying to play with a little
  Intrinsyc CerfCube here.
 
  Kernel 2.4.18 with the serial module compiled into the kernel.
  dmesg | less shows mention of /dev/ttyS02 and /dev/ttyS03 on irq 4
  and 3,
 
 when the kernel says ttyS02 it means ttyS2
 
 not sure why it spits out 02 instead of 2, but /dev/ttyS2 is correct.
 
 most systems only have 2 serial ports, /dev/ttyS0 and /dev/ttyS1. be
 sure they are enabled in the BIOS as well.
 
 nate

Sorry, nate. I guess that's what I get for working late into the night
and trying to rush myself too much. I can't believe I didn't remember to
drop the zero.

Apparently my serial ports are setup as /dev/ttyS2 and S3. I may have
configured them to use a different irq and/or ioport in the bios, which
could do that, I guess.

Anyway, I'm now successfully playing with the CerfCube, talking through
a serial cable using minicom. A Linux distro. and webserver running on a
three inch cube... technology's wonderful. :-)

Thanks again,
Jacob


- 
GnuPG Key: 1024D/16377135

In a world without fences, who needs Gates?
http://www.linux.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Newbie question - Serial Ports

2002-10-16 Thread deFreese, Barry

Hello,

I finally got the ecpa driver for my 8 port Digi board to compile and run.
It created the 8 serial devices ttyD000 through ttyD007.  I have a modem on
port 1 and port 1 or ttyD000 and ttyD001.  I installed minicom to see if I
could shoot some AT commands to them just to test and I get nada.  If I run
stty /dev/ttyD000 -a I do get a bunch of output including the buad rate
(9600), however most of the other output I don't understand.

Is there a good utility to test a serial port and also see how it is
configured?  The digi driver was supposed to build dpa and ditty, two
specific programs for the digiboards but neither was built and I cannot get
them to compile seperately.

Any ideas?

Thank you!!

Barry deFreese
NTS Technology Services Manager
Nike Team Sports
(949)-616-4005
[EMAIL PROTECTED]

Technology doesn't make you less stupid; it just makes you stupid faster.
Jerry Gregoire - Former CIO at Dell





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




RE: Newbie question - Serial Ports

2002-10-16 Thread deFreese, Barry

Never mind, I'm an ignorant newbie and forgot to update the inittab file
with mgetty for the ports.

Sorry,

Barry deFreese
NTS Technology Services Manager
Nike Team Sports
(949)-616-4005
[EMAIL PROTECTED]

Technology doesn't make you less stupid; it just makes you stupid faster.
Jerry Gregoire - Former CIO at Dell



-Original Message-
From: deFreese, Barry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 1:24 PM
To: '[EMAIL PROTECTED]'
Subject: Newbie question - Serial Ports


Hello,

I finally got the ecpa driver for my 8 port Digi board to compile and run.
It created the 8 serial devices ttyD000 through ttyD007.  I have a modem on
port 1 and port 1 or ttyD000 and ttyD001.  I installed minicom to see if I
could shoot some AT commands to them just to test and I get nada.  If I run
stty /dev/ttyD000 -a I do get a bunch of output including the buad rate
(9600), however most of the other output I don't understand.

Is there a good utility to test a serial port and also see how it is
configured?  The digi driver was supposed to build dpa and ditty, two
specific programs for the digiboards but neither was built and I cannot get
them to compile seperately.

Any ideas?

Thank you!!

Barry deFreese
NTS Technology Services Manager
Nike Team Sports
(949)-616-4005
[EMAIL PROTECTED]

Technology doesn't make you less stupid; it just makes you stupid faster.
Jerry Gregoire - Former CIO at Dell





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Newbie question - Serial Ports

2002-10-16 Thread Grant Edwards

In muc.lists.debian.user, you wrote:

 If I run stty /dev/ttyD000 -a I do get a bunch of output
 including the buad rate (9600), however most of the other
 output I don't understand.

man stty

It explains what all that output means.

 Is there a good utility to test a serial port and also see
 how it is configured?

stty 
setserial

 The digi driver was supposed to build dpa and ditty, two
 specific programs for the digiboards but neither was built and
 I cannot get them to compile seperately.

I generally use ckermit or stty and cat/echo.  I avoid minicom.

 Any ideas?

-- 
Grant Edwards   grante Yow!  Didn't I buy a 1951
  at   Packard from you last March
   visi.comin Cairo?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: How to set serial ports over reboot

2002-06-29 Thread Donald R. Spoon

Kent West [EMAIL PROTECTED] wrote:

 I need to use setserial to set the parms on /dev/ttyS3. I can do this,
 but the settings don't hold over a reboot.

 man setserial refers to /etc/setserial.conf, but there is no such
 file. A locate setserial.conf doesn't return the location of such a
 file either, although there are similar files in /var/lib/dpkg and
 /var/lib/setserial.

 I assume this is related to the autosave once option during install.

 Can anyone tell me how to get this setting to be preserved over a reboot?

 (Also, I understand it's a bug for a Debian package to ship without a
 man page; is it also a bug for the man page to be wrong? Should I file a
 bug report?)

 Thanks!

 Kent



I think 'setserial is configurable by debconf, hence dpkg-reconfigure 
setserial will bring up that particular series of questions again.


You might try making the changes and then re-configure setserial per the 
above command and see what happens.


BTW #1:  I don't have a /etc/setserial.conf file either, and I used the 
autosave once option on the initial install.  Dunno what would have 
happened if I used one of the other options...


BTW #2:  I just found a neat GUI program called gkdebconf that brings 
up a small window that lists ALL of the packages that were configured 
via debconf and thus allows you to select the one you want to run 
dpkg-reconfigure on.  I have found it quite useful for correcting 
errors made on the initial install due to my ignorance at the time.


Cheers,
-Don Spoon-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




How to set serial ports over reboot

2002-06-28 Thread Kent West
I need to use setserial to set the parms on /dev/ttyS3. I can do this, 
but the settings don't hold over a reboot.


man setserial refers to /etc/setserial.conf, but there is no such 
file. A locate setserial.conf doesn't return the location of such a 
file either, although there are similar files in /var/lib/dpkg and 
/var/lib/setserial.


I assume this is related to the autosave once option during install.

Can anyone tell me how to get this setting to be preserved over a reboot?

(Also, I understand it's a bug for a Debian package to ship without a 
man page; is it also a bug for the man page to be wrong? Should I file a 
bug report?)


Thanks!

Kent


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: How to set serial ports over reboot

2002-06-28 Thread Colin Watson
On Fri, Jun 28, 2002 at 04:02:03PM -0500, Kent West wrote:
 (Also, I understand it's a bug for a Debian package to ship without a 
 man page; is it also a bug for the man page to be wrong?

Of course. I don't know the answer to your particular problem, although
for what it's worth 'dpkg -L setserial' lists an /etc/serial.conf.

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Diagnosing serial ports

2002-06-15 Thread nate
quote who=Andrew Perrin

 I'm beginning to wonder if some other process has locked up the serial
 port (although fuser -v /dev/ttyS1 shows nothing) or if I'm missing some
 module or kernel option.  I know this is speculative, but if anyone's got
 an idea I'd be very grateful.

 This is woody running custom-built kernel 2.4.18.


i had a similar problem with this server im using, trying to get a
serial console., it drove me up the $#$%@ wall for months. finally
on tuesday night it failed again(ethernet card errors), so i went
in, and tried getting serial console to work agian, wouldn't work.

so i ran strace on the getty process, and turns out I did have a serial
console, i just could not see anything on the remote end, i managed
to login and issue commands, but the remote terminal was always blank.

i guess one of the pins is bad on the com port, once i switched to another
com port(had to crack the case and install one, damn board doesn't have
2 onboard ports), it worked immediately.

so try strace, see if you see data being sent. it should also tell you
if for some reason it cannot open the serial port.

and if you have anything else to use on the serial port to verify
that it's working(e.g, enabled in bios, and kernel detects it properly
at the right i/o and irq address) that would be good. if your board
has 2 serial ports you could do a serial console to the other port,
with a null modem cable..just edit /etc/inittab, change the line that
says for serial console and to telinit q, you should get a serial console.

or if you have a modem or other serial device..

good luck

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Diagnosing serial ports

2002-06-14 Thread Andrew Perrin
This is a followup to yesterday's attempt to get a CoStar Labelwriter XL
working under linux.

I plugged the thing into a windows laptop and it printed fine, so the
problem is not in the printer.

If I start statserial, point it at /dev/ttyS1, and plug/unplug the printer
from the computer, the CTS/DSR statuses change appropriately.

If I do anything with the pbm2lwxl package to try to print, no errors
occur but nothing comes out of the printer. The easy example is:

small2lwxl  small  /dev/ttyS1

which seems to think it's worked, since there's no error output, but
absolutely nothing happens on the printer.

I'm beginning to wonder if some other process has locked up the serial
port (although fuser -v /dev/ttyS1 shows nothing) or if I'm missing some
module or kernel option.  I know this is speculative, but if anyone's got
an idea I'd be very grateful.

This is woody running custom-built kernel 2.4.18.

ap

--
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
[EMAIL PROTECTED] * andrew_perrin (at) unc.edu



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



serial ports

2001-07-12 Thread John Griffiths
I've just installed a PCI I/O card to add some serial ports to a boc I want to 
hang some modems off...

is there any trick to getting the pppd to recognise the exrt serial ports?

thanks muchly,

John



Re: serial ports

2001-07-12 Thread J.A.Serralheiro
I think you must load a module to identify those ports.
I also think that serial.o does such.
Once I read something about multiport boards in setserial man pages. Try
that. Theres also the serial howto you can check





I have no serial ports?

2001-03-21 Thread jdls
hello,

I am having some problems with my serial ports...

From ls -l /dev/ttyS* shows..
crw-rw1 root dialout4,  64 Jul  5 23:14 /dev/ttyS0
crw-rw1 root dialout4,  65 Jul  5 23:14 /dev/ttyS1
crw-rw1 root dialout4,  66 Jul  5 23:14 /dev/ttyS2
crw-rw1 root dialout4,  67 Jul  5 23:14 /dev/ttyS3

but setserial -agv /dev/ttyS* shows...

/dev/tty0: No such device
/dev/tty1: No such device
/dev/tty2: No such device
/dev/tty3: No such device

Also, during boot-up I get:

modprobe: can't locate module char-major-4...

Question: why doesn't my serial ports get recognized? I tried upgrading to
a newer setserial then setting it via

#setserial /dev/ttyS0 or setserial /dev/ttyS1, etc... but I still get no
such device
perhaps I am passing setserial command with wrong parameters/arguments?
if so, how should I use setserial to fix this problem or should I use a
different approach?

Hoping for some advice

Thank you.



Re: I have no serial ports?

2001-03-21 Thread Nate Amsden
jdls wrote:
 

 /dev/tty0: No such device
 /dev/tty1: No such device
 /dev/tty2: No such device
 /dev/tty3: No such device

be sure you have serial support compiled into your kernel or at least as
modules

assuming your using a packaged kernel do:

cd /boot
grep -i serial config-`uname -r`

you should see
CONFIG_SERIAL=y

if you see
CONFIG_SERIAL=m

then try 'modprobe serial'

if you see
CONFIG_SERIAL=n

then recompile your kernel. i believe all the default debian kernels come with
serial support enabled.

also it helps if your serial ports in the bios are hard coded to settings
not set to 'auto'. typically serial ports use IRQ 3 and 4, and it helps again
to set IRQ3/4 as reserved or set to ISA/Non PNP. also check the bootup logs:

dmesg | grep -i tty

on my system it shows:
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A


note that may not be accurate, once i read(i think in the setserial manpage)
that the kernel just guesses the address, so in many cases it will be correct
unless your configuration is different then it may be wrong and must be
changed
via setserial.

nate


-- 
:::
ICQ: 75132336
http://www.aphroland.org/
http://www.linuxpowered.net/
[EMAIL PROTECTED]



Re: Serial ports - how to get them to coexist peacefully...

2001-02-18 Thread John Quirk

- Original Message -
From: hogan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; debian-user@lists.debian.org; LUV-talk
mailing list [EMAIL PROTECTED]
Sent: Sunday, February 18, 2001 1:44 AM
Subject: Re: Serial ports - how to get them to coexist peacefully...


Only problem is, seems one of the UART
 chips is missing (unless one 16550 can handle two ports) as there's an
empty
 socket on the board -
You might be able to find another chip on an old junk board and yes you do
need the two chips
for the other port.
 Covers current need for three com ports, but might need one more.. Where
could
 I find info on hacking other cards to use different IRQ/IO combos through
 physical alteration?
I chased this down by looking at the pin outs on the ISA bus, Lots of
documentation on the WEB try this as a start
http://www.gw.total-web.net/~dperr/pc_io.txt and
http://www.gw.total-web.net/~dperr/pc_hdwe.htm

If you old ISA card is so configurable I would try an UART chip for it as it
is much easier to put a chip into a sockect than cutting and soldering
tracks on a circuit board. Note with this quick fix you can only have a MAX
of 4 serial ports. You could in theory change the address of the I/O ports
but you would have to make sure your new I/O port range did not conflict and
that the software is able to work with these non-standard port address.

John Quirk







Re: Serial ports - how to get them to coexist peacefully...

2001-02-17 Thread John Quirk


hogan wrote:


 Can I make the onboard and oncard ttyS's play nice on same IRQ?
  or should I play musical jumpers until they're on separate IRQs?


What I did when presented with this problem was to do a bit of surgery on the 
old
ISA board and change its IRQ to a spare in the computer I was using. I cut one
track solder a wire the new interrupt pad to get it to work. With setserial and
this setup I was able to run four Serial Terminals of a two standard ISA cards.

Down side is that you lose IRQ's when you do this.

Hope this helps
John Quirk




Re: Serial ports - how to get them to coexist peacefully...

2001-02-17 Thread hogan
 What I did when presented with this problem was to do a bit of surgery on
the old
 ISA board and change its IRQ to a spare in the computer I was using. I cut
one
 track solder a wire the new interrupt pad to get it to work. With setserial
and
 this setup I was able to run four Serial Terminals of a two standard ISA
cards.

Well - I only have one hard disk, so in the end, I went through my bits box,
found another ISA card, set it to ttyS2, IRQ15 (disabled secondary IDE in
bios) - this seems to have worked... Only problem is, seems one of the UART
chips is missing (unless one 16550 can handle two ports) as there's an empty
socket on the board - a shame as this card is really easy to config for heaps
of different IO/IRQ combos.

Covers current need for three com ports, but might need one more.. Where could
I find info on hacking other cards to use different IRQ/IO combos through
physical alteration?



Serial ports - how to get them to coexist peacefully...

2001-02-16 Thread hogan
P133, 48MB RAM, Debian Testing/Unstable (some bits from unstable) 2.2.17 (move
to 2.4.1 on hold for time being whilst I read Rusty's howtos on netfilter etc.
:) ).

Have two onboard ports - ttyS0 and ttyS1 (IRQ 43 respectively)
Have an ISA IO card (everything disabled on card save ttyS3 and lpt3 [dunno
linux equiv] - reason for ISA - only have half slot, full and VLB IO cards in
stockpile :) )

Have modem on ttyS0
Switch between mouse and Wyse60 terminal on ttyS1
Want mouse on ttyS3 but IRQ conflict ttyS1+ttyS3

Can I make the onboard and oncard ttyS's play nice on same IRQ?
... or should I play musical jumpers until they're on separate IRQs?

Read something in 2.4.1 kernel config about making serial ports nice to one
another when on same IRQ.. anything similar in 2.2.x? Should I go to 2.2.18 in
interim? Will I need a custom compile? ... Will Danger Mouse save Penfold in
time? :)



RE: Serial ports - how to get them to coexist peacefully...

2001-02-16 Thread Sean 'Shaleh' Perry
 
 Can I make the onboard and oncard ttyS's play nice on same IRQ?
 ... or should I play musical jumpers until they're on separate IRQs?
 

I would change the jumpers.  Hoping the software ca multiplex is a recipe for
disaster.

 Read something in 2.4.1 kernel config about making serial ports nice to one
 another when on same IRQ.. anything similar in 2.2.x? Should I go to 2.2.18
 in
 interim? Will I need a custom compile? ... Will Danger Mouse save Penfold in
 time? :)
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Serial ports - how to get them to coexist peacefully...

2001-02-16 Thread idalton
On Sat, Feb 17, 2001 at 03:16:44AM +1100, hogan wrote:
 P133, 48MB RAM, Debian Testing/Unstable (some bits from unstable) 2.2.17 (move
 to 2.4.1 on hold for time being whilst I read Rusty's howtos on netfilter etc.
 :) ).
 
 Have two onboard ports - ttyS0 and ttyS1 (IRQ 43 respectively)
 Have an ISA IO card (everything disabled on card save ttyS3 and lpt3 [dunno
 linux equiv] - reason for ISA - only have half slot, full and VLB IO cards in
 stockpile :) )
 
 Have modem on ttyS0
 Switch between mouse and Wyse60 terminal on ttyS1
 Want mouse on ttyS3 but IRQ conflict ttyS1+ttyS3
 
 Can I make the onboard and oncard ttyS's play nice on same IRQ?
 ... or should I play musical jumpers until they're on separate IRQs?

Making onboard serial ports share interrupts is vudu. Basically the
serial port 'hardware' can either hold the interrupt line or let it
'float' when it isn't signalling an interrupt. If it holds the line,
that means the other port can't signal properly, and then more often
then not neither port will work until reset.

All you can really do is try it out to see if it works or not.

 Read something in 2.4.1 kernel config about making serial ports nice to one
 another when on same IRQ.. anything similar in 2.2.x? Should I go to 2.2.18 in
 interim? Will I need a custom compile? ... Will Danger Mouse save Penfold in
 time? :)

You do need to enable sharing serial interrupts.

-- Ferret



Re: Serial ports - how to get them to coexist peacefully...

2001-02-16 Thread Martin Albert
On Friday 16 February 2001 17:27, Sean 'Shaleh' Perry wrote:
  Can I make the onboard and oncard ttyS's play nice on same IRQ?
  ... or should I play musical jumpers until they're on separate
  IRQs?

 I would change the jumpers.  Hoping the software ca multiplex is a
 recipe for disaster.

And won't work with ISA hardware.

martin



Re: Serial ports - how to get them to coexist peacefully...

2001-02-16 Thread Craig Sanders
On Sat, Feb 17, 2001 at 03:16:44AM +1100, hogan wrote:
 Can I make the onboard and oncard ttyS's play nice on same IRQ?

no.

  or should I play musical jumpers until they're on separate IRQs?

yes.

 Read something in 2.4.1 kernel config about making serial ports nice to one
 another when on same IRQ.. anything similar in 2.2.x? 

AFAIK, that only works for some dumb 1655x-type multiport serial cards
- e.g. moxa 4/8 port cards and digiboards.

craig

--
craig sanders [EMAIL PROTECTED]

  GnuPG Key: 1024D/CD5626F0 
Key fingerprint: 9674 7EE2 4AC6 F5EF 3C57  52C3 EC32 6810 CD56 26F0



Configuring serial ports

2001-01-16 Thread Alec Smith
I'm trying to set up an Apple LaserWriter IINT to run off a PC. So far I 
have the DB9-DB25 cable and null modem connected. However, I'm having some 
trouble getting the serial port configured. As I understand the Apple 
documentation, I need


- XON/XOFF handshake
- 9600 baud
- no parity
- 7 data bits
- 1 stop bit

How can I configure Debian to use these settings on /dev/ttyS0?

Thanks!



Re: Configuring serial ports

2001-01-16 Thread David Wright
Quoting Alec Smith ([EMAIL PROTECTED]):
 I'm trying to set up an Apple LaserWriter IINT to run off a PC. So far I 
 have the DB9-DB25 cable and null modem connected. However, I'm having some 
 trouble getting the serial port configured. As I understand the Apple 
 documentation, I need
 
 - XON/XOFF handshake
 - 9600 baud
 - no parity
 - 7 data bits
 - 1 stop bit
 
 How can I configure Debian to use these settings on /dev/ttyS0?

With a shell script like:

#!/bin/sh
stty 9600  /dev/ttyS0
stty ixon  /dev/ttyS0

etc.

stty -a  /dev/ttyS0 will show you all the current values, and man stty
will tell you what they all do (but ignore -F device which does nothing).

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.



Two serial ports on a Linux laptop?

2000-12-25 Thread John Conover
Anyone done two serial ports on a Linux laptop?

How did you do it?

Thanks,

John

-- 

John ConoverTel. 408.370.2688  [EMAIL PROTECTED]
631 Lamont Ct.  Cel. 408.772.7733  http://www.johncon.com/
Campbell, CA 95008  Fax. 408.379.9602  



Re: Two serial ports on a Linux laptop?

2000-12-25 Thread matthschulz
Are there laptops with two serial ports in  this world?

Matth


Am Montag, 25. Dezember 2000 13:08 schrieb John Conover:
 Anyone done two serial ports on a Linux laptop?

 How did you do it?

   Thanks,

   John



Re: Two serial ports on a Linux laptop?

2000-12-25 Thread C. Falconer

At 07:08 PM 12/25/00 +, you wrote:

Anyone done two serial ports on a Linux laptop?

How did you do it?



You'll need to get a PCMCIA serial port card, probably quite expensive, to 
get the second port.


Why do you need two?  If one is for a mouse then consider getting a PS/2 
mouse, or if you want an external mouse and keyboard there are PS/2 
Y-cables for exactly that, leaving your serial port free for other stuff.


If you want to use a modem then consider buying a PCMCIA modem straight off 
- easier by far.


Does linux support serial ports (rather than modems) on the PCMCIA bus?

--
Criggie




Re: Two serial ports on a Linux laptop?

2000-12-25 Thread John Hasler
Criggie writes:
 Does linux support serial ports (rather than modems) on the PCMCIA bus?

A modem is a serial port.
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin



Dual serial ports on a laptop?

2000-11-15 Thread John Conover
Anyone using a laptop with a dual serial port PCMCIA?

I need a brand that works.

Thanks,

John

-- 

John ConoverTel. 408.370.2688  [EMAIL PROTECTED]
631 Lamont Ct.  Cel. 408.772.7733  http://www.johncon.com/
Campbell, CA 95008  Fax. 408.379.9602  



Getting than 4 serial ports working

2000-11-08 Thread John Anderson
I've just added two more serial ports into my computer (for a total of
six).  I added support into the kernel for  than 4 serial ports.  I added
more ports with the MAKEDEV command, but I get the following message when
I try to access the 5th or 6th port:

kerr:~# statserial /dev/ttyS4
statserial: TIOCMGET failed: Input/output error

Any suggestions?

I tried connecting my modem to it with no response at all.  All serial
ports are using separate interrupts that are not conflicting to my
knowledge.

Note: please make sure you send your response to me, as I'm not currently
subscribed to this list.


===
John Kerr Anderson
Powered by Debian GNU/Linux 2.2
===



Something wrong with serial ports?

2000-11-01 Thread Petteri Heinonen
Hi there.
I've had problems with ppp, so I've tried following:
I launched pppd on /dev/pts/2, which was one of my terminal emulator
windows. PPP-carbage appears in this window and syslog gives:

Nov  1 17:37:03 kapula pppd[412]: pppd 2.3.11 started by root, uid 0
Nov  1 17:37:03 kapula pppd[412]: Using interface ppp0
Nov  1 17:37:03 kapula pppd[412]: Connect: ppp0 -- /dev/pts/2
Nov  1 17:37:33 kapula pppd[412]: LCP: timeout sending Config-Requests
Nov  1 17:37:33 kapula pppd[412]: Connection terminated.
Nov  1 17:37:34 kapula pppd[412]: Exit.

If I try to ttyS1 with pppd /dev/ttyS1, syslog only gives:

Nov  1 17:43:06 kapula pppd[440]: pppd 2.3.11 started by root, uid 0

pppd doesn't even stop unless I kill it.

So my questions: Shouldn't I get same things in syslog when trying with
ttyS1 too as with pts/2? And shouldn't I get these messages even if there is
nothing connected in /dev/ttyS1?

I'll also give you dmesg output (only part concerningn PPP or serial ports):

ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.

thanks in advance,

Petteri Heinonen
email: [EMAIL PROTECTED]
tel.:  +358 (0)50 3363 286
addr.: Pehkusuonkatu 21 B 38
33820 Tampere, FIN



Re: Daemons that use the serial ports

2000-06-13 Thread Shaul Karl
 
 
 On Mon, 12 Jun 2000, Shaul Karl wrote:
  Perhaps lock files in /var/lock/ can help?
 
 That's the problem, there's no LCK..ttyS0 or S1 in it.
 


Just speculating: maybe lsof?


 Oki
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 

--  Shaul Karl [EMAIL PROTECTED]




Re: Daemons that use the serial ports

2000-06-12 Thread Shaul Karl
 Hi,
 
 How do you know what daemons that currently using the serial ports?
 My system behaves strangely; when it was init'ed to single user, the
 serial ports (/dev/ttyS0 and S1) can be probed using setserial -a. But
 when it was other than single user, setserial -a said that the devices
 were busy. Used by whom? Well, that's the question.
 


Perhaps lock files in /var/lock/ can help?

-- 

--  Shaul Karl [EMAIL PROTECTED]




Re: Daemons that use the serial ports

2000-06-12 Thread Oki DZ


On Mon, 12 Jun 2000, Shaul Karl wrote:
 Perhaps lock files in /var/lock/ can help?

That's the problem, there's no LCK..ttyS0 or S1 in it.

Oki




Daemons that use the serial ports

2000-06-11 Thread Oki DZ
Hi,

How do you know what daemons that currently using the serial ports?
My system behaves strangely; when it was init'ed to single user, the
serial ports (/dev/ttyS0 and S1) can be probed using setserial -a. But
when it was other than single user, setserial -a said that the devices
were busy. Used by whom? Well, that's the question.

Thanks in advance,
Oki




Re: serial ports faster that 38.4K?

2000-04-03 Thread David Wright
Quoting John Conover ([EMAIL PROTECTED]):
 
 How do you make the serial ports in 2.1 go faster than 38,400? The arg
 spd_vhi doesn't work any more, (setserial claims its depreciated, and
 it doesn't work,) but the docs claim that that is the way to do it.

You said in your previous posting that you had upgraded from Slackware.
Is it possible you've left some scripts around that are changing the
speeds? Debian 2.1 should give you 115200 out of the box, as my
reply showed.

And some old docs too, perhaps? I can't find where it's deprecated,
or where it claims that this is *the* way to do it. My slink clip
fortuitously displays man's version:

--8

   baud_base baud_base
  This option sets the base baud rate, which  is  the
  clock frequency divided by 16.  Normally this value
  is 115200, which is  also  the  fastest  baud  rate
  which the UART can support.

   spd_hi Use  57.6kb  when  the application requests 38.4kb.

Setserial 2.14  June 1998   3

SETSERIAL(8)Linux Programmer's ManualSETSERIAL(8)

  This parameter may be specified by a non-privileged
  user.

   spd_vhi
  Use  115kb  when  the  application requests 38.4kb.
  This parameter may be specified by a non-privileged
  user.

--8

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: serial ports faster that 38.4K?

2000-04-01 Thread John Hasler
John writes:
 How do you make the serial ports in 2.1 go faster than 38,400?

By telling them to.  Speeds to 115200 are supported.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


Re: modem trouble and Configuring serial ports failed

2000-02-06 Thread Shaul Karl
Perhaps it is a Plug  Play modem?

 
 I have installed Debian 2.0 (hamm) on my computer
 in addition to Windows95.  The problem is that altho the
 modem works fine on the Windows side, it doesn't work at all
 (or I haven't configured it properly) on Debian/Linux.  Having
 monitored this newsgroup for some weeks now, I am aware that
 winmodems don't work w/ Linux.  The modem is a Logicode 33H-P-CL,
 which I am told is not a winmodem, so that shouldn't be the
 cause of the problem.  At boot time, a message does flash
 by saying Configuring serial ports failed.  It doesn't
 however show up as part of the dmesg output (which I include below).
 
 Windows says that the modem is on COM2 (which of course corresponds
 to /dev/ttyS1).  However when I run setserial -g /dev/ttyS?
 I get the following output:
 
 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
 /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
 /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
 /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
 
 This doesn't look good since COM2 (ttyS1) shows an unknown UART.
 I tried using setserial to explicitly set things up, but to no avail.
 I'd appreciate any advice on how to proceed.  Due to the
 boot message about Configuring serial ports failed, I explicitly
 load the ppp package manually, but again to no avail. 
 
 I include below the dmesg output in the event it has info of
 relevance beyond my comprehension.  Thanks for any advice!
 
 -- 
 Jonathan Rich
 [EMAIL PROTECTED]
 
 
 *** dmesg output ***
 Console: 16 point font, 400 scans
 Console: colour VGA+ 80x25, 1 virtual console (max 63)
 pcibios_init : BIOS32 Service Directory structure at 0x000fad60
 pcibios_init : BIOS32 Service Directory entry at 0xfb1e0
 pcibios_init : PCI BIOS revision 2.10 entry at 0xfb210
 Probing PCI hardware.
 Calibrating delay loop.. ok - 400.59 BogoMIPS
 Memory: 14104k/16384k available (1124k kernel code, 384k reserved, 772k
 data)
 Swansea University Computer Society NET3.035 for Linux 2.0
 NET3: Unix domain sockets 0.13 for Linux NET3.035.
 Swansea University Computer Society TCP/IP for NET3.034
 IP Protocols: IGMP, ICMP, UDP, TCP
 VFS: Diskquotas version dquot_5.6.0 initialized
 
 Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
 Checking 'hlt' instruction... Ok.
 Linux version 2.0.34 ([EMAIL PROTECTED]) (gcc version 2.7.2.3) #2 Thu Jul 9
 10:57:48 EST 1998
 Starting kswapd v 1.4.2.2
 Real Time Clock Driver v1.09
 tpqic02: Runtime config, $Revision: 0.4.1.5 $, $Date: 1994/10/29 02:46:13 $
 tpqic02: DMA buffers: 20 blocks, at address 0x277800 (0x2777d8)
 Ramdisk driver initialized : 16 ramdisks of 4096K size
 loop: registered device at major 7
 ide: i82371 PIIX (Triton) on PCI bus 0 function 57
 ide0: BM-DMA at 0xf000-0xf007
 ide1: BM-DMA at 0xf008-0xf00f
 hda: FUJITSU M1623TAU, 1623MB w/128kB Cache, CHS=824/64/63, DMA
 hdb: MATSHITA CR-581, ATAPI CDROM drive
 hdc: Maxtor 90432D2, 4121MB w/512kB Cache, CHS=8374/16/63, UDMA
 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
 ide1 at 0x170-0x177,0x376 on irq 15
 Floppy drive(s): fd0 is 1.44M
 FDC 0 is a post-1991 82077
 md driver 0.35 MAX_MD_DEV=4, MAX_REAL=8
 Failed initialization of WD-7000 SCSI card!
 ppa: Version 1.42
 ppa: Probing port 03bc
 ppa: Probing port 0378
 ppa: SPP port present
 ppa: PS/2 bidirectional port present
 ppa: EPP 1.9 with hardware direction protocol
 ppa: Probing port 0278
 scsi : 0 hosts.
 scsi : detected total.
 Partition check:
  hda: hda1
  hdc: hdc1 hdc2 hdc3 hdc4
 VFS: Mounted root (ext2 filesystem) readonly.
 Adding Swap: 65516k swap-space (priority -1)
 Module inserted $Id: cdrom.c,v 0.8 1996/08/10 10:52:11 david Exp $
 lp1 at 0x0378, (polling)
 Serial driver version 4.13 with no serial options enabled
 tty00 at 0x03f8 (irq = 4) is a 16550A
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 
Shaul Karl [EMAIL PROTECTED]
An elephant is a mouse with an operating system.



modem trouble and Configuring serial ports failed

2000-02-05 Thread Jonathan Rich

I have installed Debian 2.0 (hamm) on my computer
in addition to Windows95.  The problem is that altho the
modem works fine on the Windows side, it doesn't work at all
(or I haven't configured it properly) on Debian/Linux.  Having
monitored this newsgroup for some weeks now, I am aware that
winmodems don't work w/ Linux.  The modem is a Logicode 33H-P-CL,
which I am told is not a winmodem, so that shouldn't be the
cause of the problem.  At boot time, a message does flash
by saying Configuring serial ports failed.  It doesn't
however show up as part of the dmesg output (which I include below).

Windows says that the modem is on COM2 (which of course corresponds
to /dev/ttyS1).  However when I run setserial -g /dev/ttyS?
I get the following output:

/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

This doesn't look good since COM2 (ttyS1) shows an unknown UART.
I tried using setserial to explicitly set things up, but to no avail.
I'd appreciate any advice on how to proceed.  Due to the
boot message about Configuring serial ports failed, I explicitly
load the ppp package manually, but again to no avail. 

I include below the dmesg output in the event it has info of
relevance beyond my comprehension.  Thanks for any advice!

-- 
Jonathan Rich
[EMAIL PROTECTED]


*** dmesg output ***
Console: 16 point font, 400 scans
Console: colour VGA+ 80x25, 1 virtual console (max 63)
pcibios_init : BIOS32 Service Directory structure at 0x000fad60
pcibios_init : BIOS32 Service Directory entry at 0xfb1e0
pcibios_init : PCI BIOS revision 2.10 entry at 0xfb210
Probing PCI hardware.
Calibrating delay loop.. ok - 400.59 BogoMIPS
Memory: 14104k/16384k available (1124k kernel code, 384k reserved, 772k
data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP
VFS: Diskquotas version dquot_5.6.0 initialized

Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Linux version 2.0.34 ([EMAIL PROTECTED]) (gcc version 2.7.2.3) #2 Thu Jul 9
10:57:48 EST 1998
Starting kswapd v 1.4.2.2
Real Time Clock Driver v1.09
tpqic02: Runtime config, $Revision: 0.4.1.5 $, $Date: 1994/10/29 02:46:13 $
tpqic02: DMA buffers: 20 blocks, at address 0x277800 (0x2777d8)
Ramdisk driver initialized : 16 ramdisks of 4096K size
loop: registered device at major 7
ide: i82371 PIIX (Triton) on PCI bus 0 function 57
ide0: BM-DMA at 0xf000-0xf007
ide1: BM-DMA at 0xf008-0xf00f
hda: FUJITSU M1623TAU, 1623MB w/128kB Cache, CHS=824/64/63, DMA
hdb: MATSHITA CR-581, ATAPI CDROM drive
hdc: Maxtor 90432D2, 4121MB w/512kB Cache, CHS=8374/16/63, UDMA
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.35 MAX_MD_DEV=4, MAX_REAL=8
Failed initialization of WD-7000 SCSI card!
ppa: Version 1.42
ppa: Probing port 03bc
ppa: Probing port 0378
ppa: SPP port present
ppa: PS/2 bidirectional port present
ppa: EPP 1.9 with hardware direction protocol
ppa: Probing port 0278
scsi : 0 hosts.
scsi : detected total.
Partition check:
 hda: hda1
 hdc: hdc1 hdc2 hdc3 hdc4
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 65516k swap-space (priority -1)
Module inserted $Id: cdrom.c,v 0.8 1996/08/10 10:52:11 david Exp $
lp1 at 0x0378, (polling)
Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A


HELP: problem with serial ports....

1999-08-19 Thread Bruno Boettcher
Hello,

i have the following problem, i can't acces the serial ports on my portable...
support of the serial ports (dump) is compiled in the kernel, setserial gives
back the right info, i can connect to the serial port using kermit, but
nothing goes through, and after i made an echo to the port or a cat from it i
can't se the interrupt beeing used in /proc/interrupts, inverse the serial
port on the pcmcia card works perfectly (with 2.2.9 not 2.2.10, never got it
working for the last one...)

so i do not know what for test i may make to isolate the problem, nor do i
know where to search

-- 
ciao bboett
==
[EMAIL PROTECTED]
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===
the total amount of intelligence on earth is constant.
human population is growing


Re: using 6 serial ports

1999-08-12 Thread ferret
-BEGIN PGP SIGNED MESSAGE-



On Tue, 10 Aug 1999, Nico De Ranter wrote:

 
 Howdy,
 
 I added a board with 4 serial ports to my PC.  I can access the
 first two serial ports on that board but I do not succeed in connecting
 to the other 2 ports.  I added support for more then 4 serial ports
 to the kernel and I added some setserial lines to /etc/rc.boot/0setserial
 but it still doesn't seem to work.  When I boot Linux I get a message
 stating:
 
 Serial driver version 4.27 with MANY_PORTS SHARE_IRQ enabled
 ttyS00 at 0x03f8 (irq = 4) is a 16550A
 ttyS01 at 0x02f8 (irq = 3) is a 16550A
 ttyS02 at 0x03e8 (irq = 4) is a 16550A
 ttyS03 at 0x02e8 (irq = 3) is a 16550A
 
 Should I do anything special to use the next 2 serial ports? I couldn't
 find anything in the serial-HOWTO.
 
[snip]
- From what I recall in configuring a 2-port serial board in one of my
systems is that one of the higher ports has a port conflict with one of
the IDE channels. Double-check your settings, then you'd probably want to
add lines in your 0setserial (assuming slink) to set up ttyS04 and ttyS05.
Oh, and if you have share_irq enabled in the serial driver, you can
probably configure all the ports on your board to use the same interrupt.
Worked for my board (set it for S1 and S3, set my MB's for S0 and S2) and
it worked like a charm, can even mouseand serial console on the same
interrupt. But you might have a board that it can't handle.
Shouldn't damage anything if you do try it, but I wouldn't know for sure.
It isn't my machine. :

- -- Ferret no baka


-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQEVAwUBN7MGa9Zwc6w4vgodAQFhGAf+J8AUkei8Omm9xB8wrd/XXeQTLXPKWbmX
voYm66dnGw0zz6+bsLcwI0/nzscRE8FAKqAa++E0OopK9v0KqfPZDAsr5rWi5ZGT
29Yu35mCByjsknx0FDtARiHyXma4+rtWOMBwAvV1OwnUMxuASXjPx2IN6UpMdLo3
JazYBgexAOp/VsmIFm4goRIdf2Lh9MWyjI5pwIwYu8tbRtbwEut2nv51hEgz2dlz
p5gfQwNS1dMYwKHy1X2WO3eHDvdLFB/0tu490uKKNuY79lEibtvujmU5qu74gfaO
vuJ4mFHbOJOV19NmzzH+TmMmfdbwGZZxutvEW/ONulqEp6B59vZDPA==
=pKoL
-END PGP SIGNATURE-


using 6 serial ports

1999-08-10 Thread Nico De Ranter

Howdy,

I added a board with 4 serial ports to my PC.  I can access the
first two serial ports on that board but I do not succeed in connecting
to the other 2 ports.  I added support for more then 4 serial ports
to the kernel and I added some setserial lines to /etc/rc.boot/0setserial
but it still doesn't seem to work.  When I boot Linux I get a message
stating:

Serial driver version 4.27 with MANY_PORTS SHARE_IRQ enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
ttyS02 at 0x03e8 (irq = 4) is a 16550A
ttyS03 at 0x02e8 (irq = 3) is a 16550A

Should I do anything special to use the next 2 serial ports? I couldn't
find anything in the serial-HOWTO.

Thanks in advance,

Nico

-- 

How do you tell when you run out of invisible ink?

Nico De Ranter
Sony Service Center (SUPC-E/NSSE)
Sint Stevens Woluwestraat 55 (Rue de Woluwe-Saint-Etienne)
1130 Brussel (Bruxelles), Belgium, Europe, Earth
Telephone: +32 2 724 86 41 Telefax: +32 2 726 26 86
e-mail: [EMAIL PROTECTED]


Re: using 6 serial ports

1999-08-10 Thread Michelle Konzack
Hello,

I had the same problem.
Then I have used for every Serial Port a 
seperatly pair od IO/IRQ and now it works.

But you need a serial card where you have 
enough IO and IRQ's

I can set up on my serial card 32 different 
IO's and all IRQ's.

Webmistress Michelle


At 10:09 10.08.1999 +0200, you wrote
 This was the original Message:
MK
MKHowdy,
MK
MKI added a board with 4 serial ports to my PC.  I can access the
MKfirst two serial ports on that board but I do not succeed in connecting
MKto the other 2 ports.  I added support for more then 4 serial ports
MKto the kernel and I added some setserial lines to /etc/rc.boot/0setserial
MKbut it still doesn't seem to work.  When I boot Linux I get a message
MKstating:
MK
MKSerial driver version 4.27 with MANY_PORTS SHARE_IRQ enabled
MKttyS00 at 0x03f8 (irq = 4) is a 16550A
MKttyS01 at 0x02f8 (irq = 3) is a 16550A
MKttyS02 at 0x03e8 (irq = 4) is a 16550A
MKttyS03 at 0x02e8 (irq = 3) is a 16550A
MK
MKShould I do anything special to use the next 2 serial ports? I couldn't
MKfind anything in the serial-HOWTO.
MK
MKThanks in advance,
MK
MKNico
MK
MK-- 
MK
MKHow do you tell when you run out of invisible ink?
MK
MKNico De Ranter
MKSony Service Center (SUPC-E/NSSE)
MKSint Stevens Woluwestraat 55 (Rue de Woluwe-Saint-Etienne)
MK1130 Brussel (Bruxelles), Belgium, Europe, Earth
MKTelephone: +32 2 724 86 41 Telefax: +32 2 726 26 86
MKe-mail: [EMAIL PROTECTED]
MK
MK
MK-- 
MKUnsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null
MK
MK
MK
 The Reply begins here:


Re: Extra serial ports

1999-08-03 Thread Lindsay Allen
On Mon, 2 Aug 1999, Nico De Ranter wrote:

 
 Howdy,
 
 for a test setup I need a PC with 4 serial ports (ppp server).
 Can I simply plugin any PCI board with 2 serial ports or will
 I need any hardware specific drivers?  I believe this used to work
 fine with an ISA board with 2 serial ports but I have never tried
 a PCI version and I can only find PCI serial boards nowadays.
 I guess it should be fine but it would be nice if somebody could
 say Hey, I tried it and it works without problems.

I'm no expert on PCI matters, but when I wanted 4 ports I bought a 4 port
serial card with setable IRQs.  Assuming that you have enough spare
interrupts, you then set the card, edit setserial and inittab and the
job's done.

For 8 or more ports I would investigate the smart cards that use only one
interrupt.  The hardare HOWTO deals with these. 

I understand that PCI can share interrupts, but that is way beyond me.

HTH
Lindsay
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen   [EMAIL PROTECTED]  Perth, Western Australia
voice +61 8 9316 2486   32.0125S 115.8445E   Debian Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Re: Extra serial ports

1999-08-03 Thread ferret
-BEGIN PGP SIGNED MESSAGE-


On Mon, 2 Aug 1999, Johann Spies wrote:

 On Mon, 2 Aug 1999, Nico De Ranter wrote:
 
  for a test setup I need a PC with 4 serial ports (ppp server).
  Can I simply plugin any PCI board with 2 serial ports or will
  I need any hardware specific drivers?  I believe this used to work
  fine with an ISA board with 2 serial ports but I have never tried
  a PCI version and I can only find PCI serial boards nowadays.
  I guess it should be fine but it would be nice if somebody could
  say Hey, I tried it and it works without problems.
 
 I would also like to hear the answer to this.  I have tried it some time
 ago but in the end removed the extra serial card because I never could get
 all the serial ports to work.  I suppose there may have been IRQ clashes
 which I did not know how to solve.
 
[snip sigs]

I don't have such a beast in my machine, but I remember someone posting
how to get a PCI modem (controller-based, not winmodem) working under
Linux.
However, from what I remember, you want to do an 'lspci -v', or 'cat
/proc/pci' if you don't have a 2.0 kernel, and look for an unknown device
or a 'serial controller' or something similar. You should see a value for
I/O ports. If your PCI serial card uses a UART instead of memory mapping
you should see an IO port for each of the serial ports, and you would want
to give those port addresses and the card's IRQ to serserial.

Again, I'm going completely from memory here, and I know I'm missing some
information you'll need to make it actually work, but hopefully I've
pointed you in the right direction.
I know (unless I'm really lucky) you might hose your system if you do
setserial without double-checking everything. SO MAKE SURE YOU FIND OUT
WHAT YOU'RE DOING first.

Hope you can get it working.

- -- Ferret no baka


-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQEVAwUBN6Z2tdZwc6w4vgodAQFFwggAmSlTVJ1eQPz723zOG7crwPJAqjF3UWtu
GzU1auoX/zwHzz+ALyi+vBg033LxzWIxIlWXrKqQSqGb9TQPfhfs9XfN/m8CbHZB
RsRH55KO0/2T2urmoWl2YaZS76AB59q1U3m8aB1IPQk6QxtwqB4Kv/L260Ff5LIH
vYULya9GSB+NhS8tC3h53fmSTvUaromNregBn905AGqX5qyTNtGm6cNsT26ZXGxc
zofjF/vU7kr8cL1TuZZaz1aSloyhUh2rKuF1GckA9N3MYqYNIIj1k2unglHVQEih
IAhOLo1GSV4sVBD+SU0xgKb3FXWQsu6y5sY3Fjfs8cAki58lhfKL5w==
=6Xjy
-END PGP SIGNATURE-


Extra serial ports

1999-08-02 Thread Nico De Ranter

Howdy,

for a test setup I need a PC with 4 serial ports (ppp server).
Can I simply plugin any PCI board with 2 serial ports or will
I need any hardware specific drivers?  I believe this used to work
fine with an ISA board with 2 serial ports but I have never tried
a PCI version and I can only find PCI serial boards nowadays.
I guess it should be fine but it would be nice if somebody could
say Hey, I tried it and it works without problems.

Thanks in advance,

Nico

-- 

How do you tell when you run out of invisible ink?

Nico De Ranter
Sony Service Center (SUPC-E/NSSE)
Sint Stevens Woluwestraat 55 (Rue de Woluwe-Saint-Etienne)
1130 Brussel (Bruxelles), Belgium, Europe, Earth
Telephone: +32 2 724 86 41 Telefax: +32 2 726 26 86
e-mail: [EMAIL PROTECTED]


Re: Extra serial ports

1999-08-02 Thread Johann Spies
On Mon, 2 Aug 1999, Nico De Ranter wrote:

 for a test setup I need a PC with 4 serial ports (ppp server).
 Can I simply plugin any PCI board with 2 serial ports or will
 I need any hardware specific drivers?  I believe this used to work
 fine with an ISA board with 2 serial ports but I have never tried
 a PCI version and I can only find PCI serial boards nowadays.
 I guess it should be fine but it would be nice if somebody could
 say Hey, I tried it and it works without problems.

I would also like to hear the answer to this.  I have tried it some time
ago but in the end removed the extra serial card because I never could get
all the serial ports to work.  I suppose there may have been IRQ clashes
which I did not know how to solve.

 --
| Johann Spies Windsorlaan 19  |
| [EMAIL PROTECTED]3201 Pietermaritzburg |
| Tel/Faks Nr. +27 331-46-1310 Suid-Afrika (South Africa)  |
 --

 All scripture is given by inspiration of God, and is 
  profitable for doctrine, for reproof, for correction, 
  for instruction in righteousness;  
 II Timothy 3:16 


Re: Std. Serial ports beyond 115K?

1999-02-26 Thread Jonathan Guthrie
On Tue, 23 Feb 1999, Dimitri Patakidis wrote:

 I want to connect an external ISDN to my system using the MB's
 standard serial ports.  However, everything's telling me I can only
 push 115K through these serial ports - far less than the theoretical
 max of an ISDN TA that does V.42bis.

 Any comments/suggestions on
 overclocking  ;-)  built-in serial ports to 230 (or 460) Kbps?

How good are you at making changes to multilayer PC boards?

The limitation of 115.2Kbps is a limitation of the bit-rate clock on PCs.  
You cannot go faster than this without having a higher bit-rate clock.
However, with a higher bit-rate clock you can get speeds of up to 1.5Mbps.
The problem is that you can't change that clock without modifying the
circuit that generates it, which is kind of tough if the serial port is
built in to your motherboard.

 Note:  I realize that HS serial ports/boards are available, but I don't
 want to shell out the money if I don't have to

 Note2: If you can recommend a good external ISDN TA (North America) or
 an internal that supports DialD, I'd love to hear from you.

 The best way to get the most bang for your ISDN buck  is to use an ISDN
 router. ISDN IN --- ETHERNET OUT
 
 No RS-232 translation in between.

Speaking as the owner of an ISP that has to support this sort of thing,
I'd like to encourage Mr. Traas to get a router.  It's a whole lot easier
to make a router work than an ISDN TA.

However, if he doesn't want to spend the $50 to use a high-speed serial
port, he sure isn't going to want to spend $500 extra to get a router.  
My recommendation would be to look for someone who is using an old, say,
Pipeline 25 that wants to move up.  I believe my company got one for $100
six-eight months ago.  That's less than a decent ISDN TA is going to cost
and it does routing.  Not that I'm wedded to Ascend equipment, or
anything, I just have more experience with them than other things.  You
can also use the Netgear or the Cisco or the 3com. I would recommend you
stay away from the Danube and its ilk.  They are not pleasant devices to
set up.

You'll need to do some work to find used equipment, though.  Ebay is a
definite option, here.  Drop me a private line and I'll give you the Web
addresses of a couple of people that deal in used equipment that you may
not be aware of because they mostly sell to ISP's.  You will need to get
something that knows how to do NAT (like masquerading, only different) if
you want to use it with a regular dial-up account.  (With Ascend gear,
it's mostly a matter of making sure you have a recent enough firmware
revision, and you can update the firmware for most models.  I don't know
about the others.)
-- 
Jonathan Guthrie ([EMAIL PROTECTED])
Brokersys  +281-895-8101   http://www.brokersys.com/
12703 Veterans Memorial #106, Houston, TX  77014, USA


Re: Std. Serial ports beyond 115K?

1999-02-26 Thread Jonathan Guthrie
On Tue, 23 Feb 1999, Kevin Traas wrote:

 My big thing is that I want/need Dial-  Bandwidth-on-Demand support -
 very big requirements.  I don't think these little ISDN routers
 provide the level of control that I want.  (If you know different,
 please let me know.)

All of the little ISDN routers I've ever worked with support those.
That's basic functionality.
-- 
Jonathan Guthrie ([EMAIL PROTECTED])
Brokersys  +281-895-8101   http://www.brokersys.com/
12703 Veterans Memorial #106, Houston, TX  77014, USA


Std. Serial ports beyond 115K?

1999-02-24 Thread Kevin Traas




I want to connect an external ISDN 
to my system using the MB's standard serial ports. However, everything's 
telling me I can only push 115K through these serial ports - far less than the 
theoretical max of an ISDN TA that does V.42bis.

Any comments/suggestions on 
overclocking ;-) built-in serial ports to 230 (or 460) 
Kbps?

Note: I realize that HS serial 
ports/boards are available, but I don't want to shell out the money if I don't 
have to
Note2: If you can recommend a good external ISDN 
TA (North America) or an internal that supports DialD, I'd love to hear from 
you.

Thanks,
Kevin


Kevin Traas.vcf
Description: Binary data


(Oops. Again with no HTML) Std. Serial ports beyond 115K?

1999-02-24 Thread Kevin Traas
I want to connect an external ISDN to my system using the MB's standard
serial ports.  However, everything's telling me I can only push 115K through
these serial ports - far less than the theoretical max of an ISDN TA that
does V.42bis.

Any comments/suggestions on overclocking  ;-)  built-in serial ports to
230 (or 460) Kbps?

Note:  I realize that HS serial ports/boards are available, but I don't want
to shell out the money if I don't have to
Note2: If you can recommend a good external ISDN TA (North America) or an
internal that supports DialD, I'd love to hear from you.

Thanks,
Kevin


Re: Std. Serial ports beyond 115K?

1999-02-24 Thread Dimitri Patakidis
Hi there Kevin :)
The best way to get the most bang for your ISDN buck  is to use an ISDN router. ISDN IN ---> ETHERNET OUT

No RS-232 translation in between.

Now if I could find someone to sell my external BitSurfer, I would probably go with that :)

Dimitri 




At 07:34 PM 02/23/1999 -0800, you wrote: 
>>>>
I want to connect an external ISDN to my system using the MB's standard serial ports.  However, everything's telling me I can only push 115K through these serial ports - far less than the theoretical max of an ISDN TA that does V.42bis.
  
Any comments/suggestions on overclocking  ;-)  built-in serial ports to 230 (or 460) Kbps?
  
Note:  I realize that HS serial ports/boards are available, but I don't want to shell out the money if I don't have to
Note2: If you can recommend a good external ISDN TA (North America) or an internal that supports DialD, I'd love to hear from you.
  
Thanks,
Kevin

Attachment Converted: c:\PACDIAL\MIRC\dimitri\attach\Kevin Traas1.vcf 





Re: Std. Serial ports beyond 115K?

1999-02-24 Thread Kevin Traas




My big thing is that I want/need 
Dial-  Bandwidth-on-Demand support - very big requirements. I 
don't think these little ISDN routers provide the level of control that I 
want. (If you know different, please let me know.)

Later,
Kevin


-Original Message-From: 
Dimitri Patakidis [EMAIL PROTECTED]To: Kevin 
Traas [EMAIL PROTECTED]Cc: 
debian-user@lists.debian.org 
debian-user@lists.debian.orgDate: 
Tuesday, February 23, 1999 8:17 PMSubject: Re: Std. Serial 
ports beyond 115K?Hi there Kevin :)The best way to 
get the most bang for your ISDN buck is to use an ISDN router. ISDN IN 
--- ETHERNET OUTNo RS-232 translation in between.Now if 
I could find someone to sell my external BitSurfer, I would probably go with 
that :)Dimitri At 07:34 PM 02/23/1999 -0800, you 
wrote: 
I want to connect an 
external ISDN to my system using the MB's standard serial ports. 
However, everything's telling me I can only push 115K through these 
serial ports - far less than the theoretical max of an ISDN TA that does 
V.42bis.Any 
comments/suggestions on overclocking ;-) built-in serial 
ports to 230 (or 460) Kbps?Note: I 
realize that HS serial ports/boards are available, but I don't want to 
shell out the money if I don't have toNote2: If you can 
recommend a good external ISDN TA (North America) or an internal that 
supports DialD, I'd love to hear from you.Thanks,KevinAttachment 
Converted: c:\PACDIAL\MIRC\dimitri\attach\Kevin Traas1.vcf 



Kevin Traas.vcf
Description: Binary data


Re: Std. Serial ports beyond 115K?

1999-02-24 Thread Jens B. Jorgensen



Yeah Kevin, you can get standalone boxes which do ether-isdn and will dial/bandwidth
on demand, etc. However, these nice little jobs will run you at least $300.
A waste suitable only for buying hardware with other people's money. I
*have* used one (the Ascend Pipeline 50) and loved it at a previous job.
Now, I too am actually in the market for a higher-speed ISDN configuration.
So here's the deal. Modern 16550A serial ports don't do more than 115.2kbps
even though theoretically the 16550A can go up to 460.8kbps (the chip uses
an input signal which is divided to come up with the reference signal driving
the bit rate, and these chips don't have a driver signal which is high
enough). There are boards on the market that use a Startech 16650 which
not only have driving signals high enough to supply 460.8k but these chips
also include a larger (32-byte, IIRC) fifo to help out as well. A quick
lookup on shopper.com finds a single port 9-pin ISA 16650 adapter mfgr
Lava available for $21.97 ($2.35 shipping, reportedly) from CDworld.
Actually, the last time I looked the cheapest board I could find was a
BOCA and it cost $50. I may just buy one of these.
One last note though, you'll want the 2.2.X kernel because although
the older driver in 2.1.34 supports the 16650 it disabled the FIFO in one
direction (I can send send you more info about this if you're interested,
I had a little email with Mr. Xu who wrote the driver).
Finally, as for myself I'm sick eia-232 performance and would *really*
like to get a USB TA. Unfortunately the USB support for Linux is still
in its infancy.
Kevin Traas wrote:
My
big thing is that I want/need Dial-  Bandwidth-on-Demand support -
very big requirements. I don't think these little ISDN routers
provide the level of control that I want. (If you know different,
please let me know.)Later,Kevin
-Original
Message-
From: Dimitri Patakidis [EMAIL PROTECTED]>
To: Kevin Traas [EMAIL PROTECTED]>
Cc: debian-user@lists.debian.org
debian-user@lists.debian.org>
Date: Tuesday, February 23,
1999 8:17 PM
Subject: Re: Std. Serial ports
beyond 115K?
Hi there Kevin :)
The best way to get the most bang for your ISDN buck is to use an ISDN
router. ISDN IN ---> ETHERNET OUT
No RS-232 translation in between.
Now if I could find someone to sell my external BitSurfer, I would probably
go with that :)
Dimitri



At 07:34 PM 02/23/1999 -0800, you wrote:
>>>>
?fontfamily>?param Comic Sans MS>I want to connect
an external ISDN to my system using the MB's standard serial ports. However,
everything's telling me I can only push 115K through these serial ports
- far less than the theoretical max of an ISDN TA that does V.42bis.
?/fontfamily>
?fontfamily>?param Comic Sans MS>Any comments/suggestions on
"overclocking" ;-) built-in serial ports to 230 (or 460) Kbps?
?/fontfamily>
?fontfamily>?param Comic Sans MS>Note: I realize that HS serial
ports/boards are available, but I don't want to shell out the money if
I don't have to
Note2: If you can recommend a good external ISDN TA (North America)
or an internal that supports DialD, I'd love to hear from you.
?/fontfamily>
?fontfamily>?param Comic Sans MS>Thanks,
Kevin
?/fontfamily>
Attachment Converted: "c:\PACDIAL\MIRC\dimitri\attach\Kevin Traas1.vcf"






--
Jens B. Jorgensen
[EMAIL PROTECTED]





Re: (Oops. Again with no HTML) Std. Serial ports beyond 115K?

1999-02-24 Thread Chuck Mead
On Tue, 23 Feb 1999, Kevin Traas wrote:

 I want to connect an external ISDN to my system using the MB's standard
 serial ports.  However, everything's telling me I can only push 115K through
 these serial ports - far less than the theoretical max of an ISDN TA that
 does V.42bis.
 
 Any comments/suggestions on overclocking  ;-)  built-in serial ports to
 230 (or 460) Kbps?
 
 Note:  I realize that HS serial ports/boards are available, but I don't want
 to shell out the money if I don't have to
 Note2: If you can recommend a good external ISDN TA (North America) or an
 internal that supports DialD, I'd love to hear from you.

I use a Motorola BitSurfr Pro Ez and it works fine with ip-masq.  You're
right on the limitation though... I tried a high speed port but I couldn't
get it to work.  115.2 seems fine to me...

Cheers!
-- 
Chuck Mead, CEO - Moongroup Consulting, Inc. [EMAIL PROTECTED]
http://www.moongroup.com/

Need help with sendmail/fetchmail/procmail or MUA's?  
Join the mailhelp mailing list. 
Send Subject: subscribe to [EMAIL PROTECTED] to subscribe.

Lead, follow, or get the hell out of the way!
-- me (not reputed as original!)


Debian Linux hangs while setting up serial ports

1998-08-23 Thread Allen Unrau
Hello.

I just installed Debian Linux from CD, but after I
re-booted my machine hung while setting up the
serial ports. I found a script called 0setserial
and I removed the comments for the corresponding
serial ports that I have physically installed, but
it still tries to install more serial ports than I
have.

How can I fix this?

--
Allen Unrau
[EMAIL PROTECTED]
http://www.mbnet.mb.ca/~unrau



Serial Ports.

1998-03-12 Thread Graham Lillico +44 1785 248131
Hi,

Does anyone know why on boot up my Serial ports are displayed as /dev/tty00 and
/dev/tty01?

I have tried running the 0setserial script from /rc.boot/ (i think thats
correct) and that says they are /dev/ttyS0 and /dev/ttyS1 but it also produces
a wierd error, something like;

cannot get serial info: not a typewriter

Does anyone know what this error means? or what i can do to fix it and where
the serial ports are set up on boot (i.e. what init script).  

I have serial support compiled as a kernal module and it is loaded on boot but
that puts an error message in /var/log/messages but i can't remember what it
is, something to do with an option.

Regards 

Graham


--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: Serial Ports.

1998-03-12 Thread David Wright
On Thu, 12 Mar 1998, Graham Lillico +44 1785 248131 wrote:

 Does anyone know why on boot up my Serial ports are displayed as /dev/tty00 
 and
 /dev/tty01?

Don't know about the /dev/ but my kernel (serial built-in) says:

Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
PS/2 auxiliary pointing device detected -- driver installed.
APM BIOS version 1.2 Flags 0x1b (Driver version 1.2)

very near the beginning and:

Initializing random number generator...
Configuring serial ports
done.
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
Typematic Rate set to 15.0 cps (delay = 500 mS)
INIT: Entering runlevel: 2

later on.

 I have tried running the 0setserial script from /rc.boot/ (i think thats
 correct) and that says they are /dev/ttyS0 and /dev/ttyS1 but it also produces
 a wierd error, something like;
 
   cannot get serial info: not a typewriter
 
 Does anyone know what this error means? or what i can do to fix it and where
 the serial ports are set up on boot (i.e. what init script).  

Is that Cannot set serial info ?
Maybe the serial ports are have got set oddly in your CMOS, or a resource
or IRQ conflict.

 I have serial support compiled as a kernal module and it is loaded on boot but
 that puts an error message in /var/log/messages but i can't remember what it
 is, something to do with an option.

Are you sure that's not just from the first batch of messages above?

Cheers,

--
David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA
U.K.  email: [EMAIL PROTECTED]  tel: +44 1908 653 739  fax: +44 1908 655 151



--
E-mail the word unsubscribe to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]


Re: Interrupts and serial ports

1998-01-22 Thread W Paul Mills
On Wed, 21 Jan 1998 [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 
 On Tue, 20 Jan 1998, W Paul Mills wrote:
 
  I have my modem and my UPS both connected to serial ports with the same
  interupt. Seems to work OK. These are both on the same card which was
  modified (not a lot of fun) to share the interupt. JDR Microdevices
  sells a 4-port serial board that is supposed to support shared interupts.
 
 OK Paul, but a *normal* standard serial port card has two 16550xx UARTs a
 two connectors. These cards are AFAIK not able to share interupts
 correctly. It works sometimes, when you don't use the corresponding port
 at the same time, but this is not my thing. And if you have a
 AMD-586DX/120 in an old VESA local bus motherboard, it could be
 impossible (like it was for me). 

I modified a standard board with two 16650's and used it with the standard
linux driver.

 
 Now for something completely different!
 
 You talk about a JDR Microdevices card with 4 ports. is it supported by
 linux??? How much does it cost??? Because I could use some more ports at a
 communication box at work, which should run Debian, if everything goes
 right.

I would expect it to work, but have not tried it. It is a part no. MCT-4S. 
Says that it supports unix shared interrupt mode. Uses standard 16550 chips.

They have a web site at http://www.jdr.com.

I have bought equipment from them for home and work. Good luck
with them over the last 5 or 6 years.

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread W Paul Mills
I have my modem and my UPS both connected to serial ports with the same
interupt. Seems to work OK. These are both on the same card which was
modified (not a lot of fun) to share the interupt. JDR Microdevices
sells a 4-port serial board that is supposed to support shared interupts.

On Sun, 11 Jan 1998, Dan Hugo wrote:

 [EMAIL PROTECTED] wrote:
 
  0setserial confused me to. But after all I've figuered out, that linux (on
  my machine) does NOT support 2 serials on the same interupt. What happens
  is, that they both are not useable. I have set the jumpers on my ... hmmm
  ... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
  parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
  /dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
  the 0setserial file as shown below:
  
  -  /etc/rc.boot/0setserial --- [snip] -
  ...
  
  #
  # The typical user will only have 2 serial ports. To try and minimise
  # problems, all other configurations have been commented out!
  #
  ${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
  ${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
  
  ...
  -  /etc/rc.boot/0setserial --- [snap] -
  
  As you can see, I have taken the '#' out. That's all.
 
 I have a Bo-unstable drop from about almost a year ago, and that comment
 is not in there... thought I did get everything working just right for
 my current setup, which is
 
 ttyS0 - Modem
 ttyS1 - PalmPilot (or whatever it's called now).
 
 I just got a BestPower Fortress (needed it), and I would like to hook up
 a serial laser printer and, if it works, leave it hooked up.
 
 I'm not necessarily short on interrupts yet, but I figured it would be
 interesting of the slower items could just share an interrupt.
 
 Oh well...
 
 -dh
 
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] . 
 Trouble?  e-mail to [EMAIL PROTECTED] .
 

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Tue, 20 Jan 1998, W Paul Mills wrote:

 I have my modem and my UPS both connected to serial ports with the same
 interupt. Seems to work OK. These are both on the same card which was
 modified (not a lot of fun) to share the interupt. JDR Microdevices
 sells a 4-port serial board that is supposed to support shared interupts.

OK Paul, but a *normal* standard serial port card has two 16550xx UARTs a
two connectors. These cards are AFAIK not able to share interupts
correctly. It works sometimes, when you don't use the corresponding port
at the same time, but this is not my thing. And if you have a
AMD-586DX/120 in an old VESA local bus motherboard, it could be
impossible (like it was for me). 

Now for something completely different!

You talk about a JDR Microdevices card with 4 ports. is it supported by
linux??? How much does it cost??? Because I could use some more ports at a
communication box at work, which should run Debian, if everything goes
right.

Thanx in advance!

Daniel

- -
- - Daniel Gross [EMAIL PROTECTED] -
- - Ingolstadt, Germany  [EMAIL PROTECTED] -
- - If Win95 is the answer, it must have been a real foolish question ! -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNMZj7wnLrgqPNGtBAQGvzAgArmTunPzm22hmaYllmuBMkFJu+QqWi9GY
gMk1U45WubxIAUuysUyfBbXjsfpJWvPrPqNGVrFHU0C201uMTuxGnNIQaodcgjwb
wydqSEI0HmDiFo3iemorE3mJYR14/C5kRpKBHVym4Pv+fs70Zmf7lHLWDrYbynQh
JtRK0i6LjvJi7KFIht5EScMiI18l10V1xt/7znbwDWwtXCvGPDP0RThOitoIIQPw
6XFzKFOjLo2o6iCOIwFQfPW20MLPvspO7kSTeyoQNjuUd0L6Kmw5qSkg7FqZXGxO
a4JBmSVdPF58yEX/ib7kiOJUh6aAOScvQOl2touTuq70nR/ufWgnBQ==
=XZTY
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread Tim Sailer
[EMAIL PROTECTED] wrote:
 You talk about a JDR Microdevices card with 4 ports. is it supported by
 linux??? How much does it cost??? Because I could use some more ports at a
 communication box at work, which should run Debian, if everything goes
 right.

AST used to make a 4 port card that used 1 interrupt. There are a few
clones out there. DFI makes/made one, and I think JDR does too. The
setserial script has support for the cards.

Tim

-- 
 (work) [EMAIL PROTECTED] / (home) [EMAIL PROTECTED] - http://www.buoy.com/~tps
  Madness takes its toll...
  Please have exact change!
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Some remarks: Interrupts and serial ports

1998-01-14 Thread Adrian Bridgett
On Tue, Jan 13, 1998 at 07:38:33PM +0100, Wojtek Zabolotny wrote:
 
   Hi all!
 
 I've read a discussion about serial ports and interrupts and still have
 some doubts.
 WHY KERNEL'S SERIAL DRIVER IS WRITTEN IN THIS WAY THAT IT'S IMPOSSIBLE TO
 SHARE INTERRUPTS?

I think it is more of a case of PC's bad design, IIRC the latest kernels can
share the interupts, but it's not recommended.

Adrian

email: [EMAIL PROTECTED]   | Debian Linux - www.debian.org
http://www.poboxes.com/adrian.bridgett   | Because bloated, unstable 
PGP key available on public key servers  | operating systems are from MS


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Some remarks: Interrupts and serial ports

1998-01-13 Thread Wojtek Zabolotny

Hi all!

I've read a discussion about serial ports and interrupts and still have
some doubts.
WHY KERNEL'S SERIAL DRIVER IS WRITTEN IN THIS WAY THAT IT'S IMPOSSIBLE TO
SHARE INTERRUPTS?
From the hardware point of view it should be quite possible. The interrupt
line is driven by a three-state buffer, so it is impossible to use two
serial ports with the same interrupt simultaneously, but it should be
possible to use them by turns.
When program wants to open a serial device, driver should check the status
of the appropriate interrupt line, and open it only if the line is not
used by other devices. It is possible to arrange it that way by slight
changes in the serial driver (Well, I know that if it's so easy I should
propose the concrete solution, but at the moment I really have no time to 
experiment with the kernel).

 What could it be used for?
Just for example:
In my home computer I have four serial ports - two integrated with the
motherboard (used for mouse and modem), and two located on the
Multi-IO board (used for interface for my Casio organizer and EVM 56002
DSP evaluation board).
I may not sacrifice more than two (3 and 4) interrupts for serial ports,
because all other interrupts are already used by other hardware.
I usually use the mouse and ONE of the other devices, so I would like to 
use mouse with COM1/IRQ3, modem with COM2/IRQ4, CASIO with COM3/IRQ4 and
EVM with COM4/IRQ4.
Well, one may say that I could get exactly the same by using only two
serial ports with a switch ('multiplexer'), but it would be more
expensive, would increase amount of cables around my computer, and would
require to operate the switch manually when I change the device.
 
So I think it would be useful to change serial driver that way. If there
are other people interested in it, I would like to discuss with them this
problem.
Wojtek Zabolotny
[EMAIL PROTECTED]
PS.
IN FACT IT IS A PROBLEM WITH BRAIN-DEAD PC ARCHITECTURE. THERE SHOULD BE
ONE ONLY INTERRUPT LINE USED BY ALL SERIAL PORTS. THE INTERRUPT LINES IN
ISA SLOT SHOULD BE ACTIVATED WITH 0 LEVEL, AND ALL SERIAL CARDS
SHOULD HAVE OPEN DRAIN OUTPUT. CHECKING AFTER THE INTERRUPT, WHICH SERIAL
PORT CAUSED IT, CAN BE FAST ENOUGH...


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Dan Hugo
[EMAIL PROTECTED] wrote:

 0setserial confused me to. But after all I've figuered out, that linux (on
 my machine) does NOT support 2 serials on the same interupt. What happens
 is, that they both are not useable. I have set the jumpers on my ... hmmm
 ... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
 parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
 /dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
 the 0setserial file as shown below:
 
 -  /etc/rc.boot/0setserial --- [snip] -
 ...
 
 #
 # The typical user will only have 2 serial ports. To try and minimise
 # problems, all other configurations have been commented out!
 #
 ${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
 ${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
 
 ...
 -  /etc/rc.boot/0setserial --- [snap] -
 
 As you can see, I have taken the '#' out. That's all.

I have a Bo-unstable drop from about almost a year ago, and that comment
is not in there... thought I did get everything working just right for
my current setup, which is

ttyS0 - Modem
ttyS1 - PalmPilot (or whatever it's called now).

I just got a BestPower Fortress (needed it), and I would like to hook up
a serial laser printer and, if it works, leave it hooked up.

I'm not necessarily short on interrupts yet, but I figured it would be
interesting of the slower items could just share an interrupt.

Oh well...

-dh


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Sun, 11 Jan 1998, Dan Hugo wrote:

 ttyS1 - PalmPilot (or whatever it's called now).

Cool! I've got a Psion S3a on a ttySx port attached.

 I'm not necessarily short on interrupts yet, but I figured it would be
 interesting of the slower items could just share an interrupt.

Sorry, I've tested it with with my Psion S3a and an old 9600 bps modem. 
Even if the modem has no connection, it does not work. I think, that the
kernel does not know, which port has data when the shared interupt occurs.

So I have taken every port to it's own interupt. But my question is: Why
can I share interupt with parallel ports? I have lp1 and lp3 on the same
interupt, and printing and the access to my Zip drive works fine!

Bye

Daniel Gross

- -
- - Daniel Gross [EMAIL PROTECTED] -
- - Ingolstadt, Germany  [EMAIL PROTECTED] -
- - If Win95 is the answer, it must have been a real foolish question ! -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNLpYsAnLrgqPNGtBAQEDgAgAhGURqGhgmyOw4vRCNUAX92pMvV8OZ7mX
9wsmiJbSNsOEyzqSHfTNp3IDdhQJZqXp4gqt7Ziw+alPMXf32Gi1E0hEpgrNj+y4
BDIUgcf3n7DubM5usOtxIElSu+TFy8QNbn7H6Zc+dT5zifykCUWBLALMtuXFBfGC
Onj28m+iyX9nZ59v7pyYrEAiMO7nu1e7a3+fPK8tqt4J6Em/Fv/ardixM7PIM/OW
IGjV/LgHl7Vgkz11dqzkHDt/gWiI61DPrKKfWsbkOJy8xR432RuOCyn0KcvuUAww
hJ4S4hpAZBHLWbl6md4mDyqCL66x8di9Ogf/UnirnU6+XeDD4S/c8g==
=nbw7
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Jens B. Jorgensen
The parallel port kernel driver doesn't use the interrupt by default, it uses
polling. (It even says so in the boot messages, at least with my kernel.)

[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-

 On Sun, 11 Jan 1998, Dan Hugo wrote:

  ttyS1 - PalmPilot (or whatever it's called now).

 Cool! I've got a Psion S3a on a ttySx port attached.

  I'm not necessarily short on interrupts yet, but I figured it would be
  interesting of the slower items could just share an interrupt.

 Sorry, I've tested it with with my Psion S3a and an old 9600 bps modem.
 Even if the modem has no connection, it does not work. I think, that the
 kernel does not know, which port has data when the shared interupt occurs.

 So I have taken every port to it's own interupt. But my question is: Why
 can I share interupt with parallel ports? I have lp1 and lp3 on the same
 interupt, and printing and the access to my Zip drive works fine!

 Bye

 Daniel Gross

 - -
 - - Daniel Gross [EMAIL PROTECTED] -
 - - Ingolstadt, Germany  [EMAIL PROTECTED] -
 - - If Win95 is the answer, it must have been a real foolish question ! -
 - -

 -BEGIN PGP SIGNATURE-
 Version: 2.6.3ia
 Charset: noconv
 Comment: Requires PGP version 2.6 or later.

 iQEVAwUBNLpYsAnLrgqPNGtBAQEDgAgAhGURqGhgmyOw4vRCNUAX92pMvV8OZ7mX
 9wsmiJbSNsOEyzqSHfTNp3IDdhQJZqXp4gqt7Ziw+alPMXf32Gi1E0hEpgrNj+y4
 BDIUgcf3n7DubM5usOtxIElSu+TFy8QNbn7H6Zc+dT5zifykCUWBLALMtuXFBfGC
 Onj28m+iyX9nZ59v7pyYrEAiMO7nu1e7a3+fPK8tqt4J6Em/Fv/ardixM7PIM/OW
 IGjV/LgHl7Vgkz11dqzkHDt/gWiI61DPrKKfWsbkOJy8xR432RuOCyn0KcvuUAww
 hJ4S4hpAZBHLWbl6md4mDyqCL66x8di9Ogf/UnirnU6+XeDD4S/c8g==
 =nbw7
 -END PGP SIGNATURE-

 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] .
 Trouble?  e-mail to [EMAIL PROTECTED] .



--
Jens B. Jorgensen
[EMAIL PROTECTED]



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Ben Pfaff
   So I have taken every port to it's own interupt. But my question is: Why
   can I share interupt with parallel ports? I have lp1 and lp3 on the same
   interupt, and printing and the access to my Zip drive works fine!

Chances are that, under Linux, lp1 is not really using an interrupt.
The default for printer ports is to use polling, which does not make
use of an interrupt.

You can tell whether a port is using polling or interrupt-driven
output by executing `tunelp portname'.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Interrupts and serial ports

1998-01-11 Thread Dan Hugo
I have a SIIG serial port ISA card so I can add on two more serial
ports.

I was looking through /etc/rc.boot/0setserial to see how everything is
configured, and I noticed that in the manual configuration section, it
attempts to setup the COM1/3 and COM2/4 ports to irq's 4 and 3,
respectively.  I've read the howto's and the docs that came with the
card, and everything is quite clear... One serial port, one interrups.

My question-- does Linux support shared serial port interrupts in any
way?

The 0setserial file confused me a bit on this.

Thanks for any input.

-dh


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-11 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Sun, 11 Jan 1998, Dan Hugo wrote:

 I was looking through /etc/rc.boot/0setserial to see how everything is
 configured, and I noticed that in the manual configuration section, it
 attempts to setup the COM1/3 and COM2/4 ports to irq's 4 and 3,
 respectively.  I've read the howto's and the docs that came with the
 card, and everything is quite clear... One serial port, one interrups.
 
 My question-- does Linux support shared serial port interrupts in any
 way?
 
 The 0setserial file confused me a bit on this.

Hi Dan!

0setserial confused me to. But after all I've figuered out, that linux (on
my machine) does NOT support 2 serials on the same interupt. What happens
is, that they both are not useable. I have set the jumpers on my ... hmmm
... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
/dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
the 0setserial file as shown below:

-  /etc/rc.boot/0setserial --- [snip] -
...

#
# The typical user will only have 2 serial ports. To try and minimise
# problems, all other configurations have been commented out!
#
${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}

...
-  /etc/rc.boot/0setserial --- [snap] -

As you can see, I have taken the '#' out. That's all.

Try it, and mail me, if you need further help!

Bye

Daniel

P.S. The two-serials-on-one-interupt-solution works fine with DOS and
systems, that can only access one port at a time. But I had problems with
Windows and Linux. My configuration was ttyS0 = modem and ttyS2 = terminal
(local attached Psion S3a) and I couldn't get this to work with both on
the same interupt. 

- -
- - Daniel Gross [EMAIL PROTECTED] -
- - Ingolstadt, Germany  [EMAIL PROTECTED] -
- - If Win95 is the answer, it must have been a real foolish question ! -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNLlHGQnLrgqPNGtBAQE6Fgf/dHjhtJF+UP+wO+3ELW84XITKgXKIXzOi
7j2zErEEbmmDyz57rKbxm8ybkE2HTyjU+r9eNwGzxf8j4ugRFhulhzyL+VWet21O
7RKEMR8HXGam2xftFGhE5OYOqd8WaeZaTKwWI8gZ1NsHfeOlbcouIYGAF8kmAm6e
3Cj9ZUYjyZXpwIjZX5jRpjlQL3+LHFpvNXCiG93WBErP9Xs+rq+3ETuLHgFfcIgs
4mqbmn2+1TcXbgzhjE0A/Iqd8YleRGsrnftEFcnW/kof30CZ0ZHiibNlF5j7GHMH
NrH5rHiEGuuhvCgnw7DqKAeSfwwrWfdOGjvZ6tdoJvm2rKmKOal6lA==
=KEhu
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Setting serial ports

1997-09-14 Thread Carl Flippin
I have some strange IRQ settings for my serial ports. Linux doesn't 
autoprobe properly. I've read in the manual that this can be 
corrected by via setserial. This seems a rather inelegant solution. 
Is there a way similar to the pas16=0x388,20 I use for my CD-ROM 
controller to override the autoprobe in the first place? I've looked 
at the serial-HOWTO and the various documents on the LDP but could 
find no such solution.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? 
e-mail to [EMAIL PROTECTED] .


Re: Serial ports/Speak Freely/Video/Installation Dependencies...

1997-03-09 Thread Craig Sanders

On Wed, 5 Mar 1997, Mark Lever wrote:

 getty processed on ttyS1 block modem access to cua1. When a getty is
 running (getty, agetty, uugetty or mgetty) and I try to run kermit
 (or minicom or statserial) I get a can't open device error. Why? They
 didn't used to. Is this a new kernel feature?

ttyS devices and cua devices use different locking methods.

cua devices are obsolete, and have been obsolete in the linux kernel
for nearly a year now - they are only kept for compatibility with older
programs which haven't been patched to use the ttyS* locking method.

So, use ttyS devices for ALL of your serial ports, for all applications
- getty, mgetty, kermit, minicom etc.

If you are using mgetty then you do not need to use uugetty - mgetty can
do everything the getty_ps/uugetty can do and a whole lot more.

 Also, on another subject, is there any way network audio system can
 co-exist with speak freely? I use speak freely to listen to my house
 while I'm at work. I have two dogs I like to keep and ear on. Is there
 any reason that I can only operate with -DAUDIO_BLOCKING? I have a
 SB16 installed and I think it supports bi-directional sound (i. e.
 /dev/audio and /dev/mixer are independent).

not as far as i know - i find this a bit annoying myself...i sometimes
use the real audio player, or xanim, neither of which will work with NAS
running. I usually run '/etc/init.d/nas stop' to kill NAS just before
running something which can't work with it, and '/etc/init.d/nas start'
to restart it again afterwards.

It would be nice if NAS could run out of inetd or as a non-blocking
daemon. But AFAIK it can't.

Craig


Serial ports/Speak Freely/Video/Installation Dependencies...

1997-03-06 Thread Mark Lever
Hi all,

I just joined the mailing list since I just upgraded my 2 year old
Slackware installation to Debian 1.2.7 from ftp.debian.org.

All in all, I'd have to say I'm pleased but there are a few nagging
questions.

getty processed on ttyS1 block modem access to cua1.  When a getty is
running (getty, agetty, uugetty or mgetty) and I try to run kermit (or
minicom or statserial) I get a can't open device error.  Why?  They
didn't used to.  Is this a new kernel feature?

Also, on another subject, is there any way network audio system can
co-exist with speak freely?  I use speak freely to listen to my house
while I'm at work.  I have two dogs I like to keep and ear on.  Is
there any reason that I can only operate with -DAUDIO_BLOCKING?  I
have a SB16 installed and I think it supports bi-directional sound
(i. e. /dev/audio and /dev/mixer are independent).

Another general subject, what about video?  Are there any cheap ($500
or less) camera/frame grabber packages available?

Are there any order dependencies on these packages.  After
installing emacs and emacs-el, I get a File mode specification error:
(file-error Cannot open load file sh-script) after doing a C-x C-f
on a new file.

Keep up the good work and thanks for your attention and I'll try to
reciprocate when I know something someone else doesn't...

Mark

-- 
[EMAIL PROTECTED]
Applied Digital Access, Inc.
San Diego, CA 92121


Re: Serial ports/Speak Freely/Video/Installation Dependencies...

1997-03-06 Thread Boris D. Beletsky
 On Wed, 5 Mar 1997,, Mark wrote:

 Mark Hi all,
 Mark
 Mark I just joined the mailing list since I just upgraded my 2 year
 Mark old Slackware installation to Debian 1.2.7 from ftp.debian.org.
 Mark
 Mark All in all, I'd have to say I'm pleased but there are a few
 Mark nagging questions.
 Mark
 Mark getty processed on ttyS1 block modem access to cua1. When a
 Mark getty is running (getty, agetty, uugetty or mgetty) and I try
 Mark to run kermit (or minicom or statserial) I get a can't open
 Mark device error. Why? They didn't used to. Is this a new kernel
 Mark feature?

I am not sure about this, but AFAIK Debian kernel that comes with
the boot floppy doesn't have serial support compiled into the
kernel, so you'll have to recompile your kernel to recognize serial
devices.

borik

---
Boris D. Beletsky  [EMAIL PROTECTED]
Network Administrator   [EMAIL PROTECTED]
Institute of Computer Science,  [EMAIL PROTECTED]
Hebrew University Jerusalemhome: +972 2 6411880


Re: Serial ports/Speak Freely/Video/Installation Dependencies...

1997-03-06 Thread Nicolás Lichtmaier
On Wed, 5 Mar 1997, Mark Lever wrote:

 getty processed on ttyS1 block modem access to cua1.  When a getty is
 running (getty, agetty, uugetty or mgetty) and I try to run kermit (or
 minicom or statserial) I get a can't open device error.  Why?  They
 didn't used to.  Is this a new kernel feature?

 /dev/cua shouldn't be used. They're there only for backwards
compatiility. You should configure all your software to use /dev/ttyS?.

Nicolás Lichtmaier.-
[EMAIL PROTECTED]


  1   2   >