Hi, I need to check whether the COM port on my motherboard is being activated correctly. I have a UPS connected to it, and the installed software refuses to acknowledge that there's anything there. This is a SuSE 10 installation, on AMD64. I've checked in the BIOS that the COM port is "on". Is there a tool in Yast for looking at COM ports? Cheers, Jon, -- Jonathan Brooks (Ph.D.) Research Assistant PaIN Group, Department of Human Anatomy & Genetics University of Oxford, South Parks Road, Oxford, OX1 3QX tel: 01865 272156 fax: 01865 282675
On Fri, 11 Nov 2005 17:56:20 +0000 (GMT), you wrote:
Hi,
I need to check whether the COM port on my motherboard is being activated correctly. I have a UPS connected to it, and the installed software refuses to acknowledge that there's anything there.
This is a SuSE 10 installation, on AMD64. I've checked in the BIOS that the COM port is "on".
Is there a tool in Yast for looking at COM ports?
Cheers, Jon,
Try miniterm. You should get at least something that looks like line noise from a UPS. Mike- -- Mornings: Evolution in action. Only the grumpy will survive. -- Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If email from you bounces, try non-HTML, non-encoded, non-attachments.
hi,
I need to check whether the COM port on my motherboard is being activated correctly. I have a UPS connected to it, and the installed software refuses to acknowledge that there's anything there.
This is a SuSE 10 installation, on AMD64. I've checked in the BIOS that the COM port is "on".
Is there a tool in Yast for looking at COM ports?
I don't know if the yast hardware module can, but "setserial -g /dev/ttyS?" should show you which ports are activated. You could also use minicom or simply cat /dev/ttySx (replace x with the serial port's number) on one screen and then echo commands to it on another... Check "man setserial" to find out how to configure a serial port... I think the SUSE portal also has an article on it... -- /Paul "It's not about the ending, it's about the journey." - Lex Luthor
Paul wrote:
hi,
I need to check whether the COM port on my motherboard is being activated correctly. I have a UPS connected to it, and the installed software refuses to acknowledge that there's anything there.
This is a SuSE 10 installation, on AMD64. I've checked in the BIOS that the COM port is "on".
Is there a tool in Yast for looking at COM ports?
I don't know if the yast hardware module can, but "setserial -g /dev/ttyS?" should show you which ports are activated. You could also use minicom or simply cat /dev/ttySx (replace x with the serial port's number) on one screen and then echo commands to it on another...
Check "man setserial" to find out how to configure a serial port... I think the SUSE portal also has an article on it...
-- /Paul
"It's not about the ending, it's about the journey." - Lex Luthor
Hi, typing setserial -g /dev/ttyS? gives: /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 Which seems okay? However, cat /dev/ttyS0 gives absolutely nothing, no chatter, nothing. I installed minicom, which also required a modem communication file thingie (?) loaded it up and configured the modem to /dev/ttyS0, but am unsure how to probe further to see if a) the serial port is configured correctly, or b) whether the UPS is trying to "say" anything. This UPS worked a treat on my SuSE 9.3 machine, but since upgrading to SuSE 10 (fresh install, new hardware) hasn't given a peep. Anyone got any experience with COM ports?? Cheers, Jon. -- Jonathan Brooks (Ph.D.) Research Assistant. PaIN Group, Department of Human Anatomy & Genetics, University of Oxford, South Parks Road, Oxford, OX1 3QX tel: +44(0)1865-282654 fax: +44(0)1865-282656 web: http://www.fmrib.ox.ac.uk/~jon
hi,
typing setserial -g /dev/ttyS? gives:
/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
Which seems okay?
Yes, they look ok, except no UART is specified for 1, 2, 3. Although it could be connected to 0 and the UART is correct. Check the UPS specifications to find out its UART. You can correct this with setserial. You can also use setserial to automatically configure the serial ports ("man setserial" for further information).
However, cat /dev/ttyS0 gives absolutely nothing, no chatter, nothing.
It would give nothing. Assuming the UPS understands some commands in the same way as a modem, you could just echo commands to it and this will be displayed on the screen with cat /dev/ttyS0. For example, for a modem: On console 1 ([CTRL] [ALT] [F1]), login as root and then execute: cat /dev/ttyS0 On console 2 ([CTRL] [ALT] [F2]), login as root and then execute: echo "AT" > /dev/ttyS0 and assuming the modem knows AT commands then it will reply and show the reply on console 1. So, assuming a UPS has some standard commands (refer to the manufacturer's manual) then it will respond to commands sent by echo and display the output on console 1 -- /Paul "It's not about the ending, it's about the journey." - Lex Luthor
Paul wrote:
hi,
typing setserial -g /dev/ttyS? gives:
/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
Which seems okay?
Yes, they look ok, except no UART is specified for 1, 2, 3. Although it could be connected to 0 and the UART is correct. Check the UPS specifications to find out its UART. You can correct this with setserial. You can also use setserial to automatically configure the serial ports ("man setserial" for further information).
However, cat /dev/ttyS0 gives absolutely nothing, no chatter, nothing.
It would give nothing. Assuming the UPS understands some commands in the same way as a modem, you could just echo commands to it and this will be displayed on the screen with cat /dev/ttyS0.
For example, for a modem:
On console 1 ([CTRL] [ALT] [F1]), login as root and then execute:
cat /dev/ttyS0
On console 2 ([CTRL] [ALT] [F2]), login as root and then execute:
echo "AT" > /dev/ttyS0
and assuming the modem knows AT commands then it will reply and show the reply on console 1.
So, assuming a UPS has some standard commands (refer to the manufacturer's manual) then it will respond to commands sent by echo and display the output on console 1
-- /Paul
"It's not about the ending, it's about the journey." - Lex Luthor
Okay it's working. The serial comms package that minicom has as a dependency (and was not installed on my machine) is: "rzsz" X-, Y- and Z-Modem Data Transfer Protocols (ver 0.12.20-842) I guess you must need this for serial comms to work properly. Under normal circumstances I would imagine this is installed by default, but when I selected not to have anything ISDN related (at installation), it must have been auto-deselected (?). This is slightly odd, since just because you don't want/have ISDN doesn't mean you don't have serial devices.....? Anyway, everything seems fine now. Thanks for all your help. Best wishes, Jon. -- Jonathan Brooks (Ph.D.) Research Assistant. PaIN Group, Department of Human Anatomy & Genetics, University of Oxford, South Parks Road, Oxford, OX1 3QX tel: +44(0)1865-282654 fax: +44(0)1865-282656 web: http://www.fmrib.ox.ac.uk/~jon
On Mon, 14 Nov 2005 12:18:23 +0000, you wrote:
hi,
typing setserial -g /dev/ttyS? gives:
/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
Which seems okay?
Yes, they look ok, except no UART is specified for 1, 2, 3. Although it could be connected to 0 and the UART is correct. Check the UPS specifications to find out its UART. You can correct this with setserial. You can also use setserial to automatically configure the serial ports ("man setserial" for further information).
However, cat /dev/ttyS0 gives absolutely nothing, no chatter, nothing.
It would give nothing. Assuming the UPS understands some commands in the same way as a modem, you could just echo commands to it and this will be displayed on the screen with cat /dev/ttyS0.
For example, for a modem:
On console 1 ([CTRL] [ALT] [F1]), login as root and then execute:
cat /dev/ttyS0
On console 2 ([CTRL] [ALT] [F2]), login as root and then execute:
echo "AT" > /dev/ttyS0
and assuming the modem knows AT commands then it will reply and show the reply on console 1.
So, assuming a UPS has some standard commands (refer to the manufacturer's manual) then it will respond to commands sent by echo and display the output on console 1
-- /Paul
"It's not about the ending, it's about the journey." - Lex Luthor
What type of ups is it, and are you sure that that's a com port? The older APCs had a DB9 connector, but it wasn't a serial port, it was a relay connection. I didn't really try interactive monitoring with upss until the current batch of usb units came out. Wish I could help more. Mike- -- Mornings: Evolution in action. Only the grumpy will survive. -- Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If email from you bounces, try non-HTML, non-encoded, non-attachments.
participants (3)
-
Jonathan Brooks
-
Michael W Cocke
-
Paul