Koozali.org: home of the SME Server

apcupsd and ttyS0

Klaus Eckert

apcupsd and ttyS0
« on: April 02, 2003, 01:10:44 PM »
Hello

on my SME5.6-machine the apcupsd seems to have a problem.
it tells me that the ttyS0 can not be opened.
i installed apcupsd-3.8.5-1.i386.RH7.1.rpm and dmc-mitel-apcupsd-3.8.5-5.noarch.rpm.

as recommended in the apcupsd-usermanual i checked if the ttyS0 is used by another software. it is not used.

what may be the problem?
does anyone have a solution?

sorry for my bad english, i'm german ;-)

kind regards
klaus

Ray Mitchell

Re: apcupsd and ttyS0
« Reply #1 on: April 02, 2003, 07:14:49 PM »
ttyS0=COM1
do you have a modem on COM1 ?
or perhaps have loaded some other piece of software that is using COM1 also ?
Try setting apcupsd to ttyS1 and plug UPS into COM2 and see what happens

Ray

Klaus Eckert

Re: apcupsd and ttyS0
« Reply #2 on: April 03, 2003, 12:17:14 PM »
no modem.
no other sofware is using ttyS0.
i already tried ttyS1. same problem.

klaus

Jim Little

Re: apcupsd and ttyS0
« Reply #3 on: April 03, 2003, 06:28:28 PM »
Do you have your COM ports enabled in your BIOS?  Have you been able to communicate with any other devices using ttyS0?  Try an external modem and minicom.  Do you have the right kind of cable for the UPS you are using?

Jim

Klaus Eckert

Re: apcupsd and ttyS0
« Reply #4 on: April 03, 2003, 06:37:21 PM »
the ports are enabled in the BIOS, already checked.

the cabele is OK, my old server got connection to the UPS three weeks ago.
the UPS is OK, see above.

the test with a modem is a good hint. i will do that tonight.
i remember my old 14400-modem in the desk.

kind regards
klaus

Ray Mitchell

Re: apcupsd and ttyS0
« Reply #5 on: April 04, 2003, 06:43:55 AM »
Klaus
I have the same rpms loaded on a 5.6 server and working just fine.
The DEVICE setting in server manager APC UPS panel is /dev/ttyS0.
Is that what you have ?

You could aso try uninstalling the rpms and reinstall them again, perhaps doing a reboot in between.

Regards
Ray

Klaus Eckert

Re: apcupsd and ttyS0
« Reply #6 on: April 04, 2003, 11:56:09 AM »
yes, it is /dev/ttyS0.

i tried to uninstall both RPMs. "rpm -e ..." told me that these are not installed.
so i tried to install them again, the message was that they are installed already.

that confuses me a bit...

cheers
klaus

Ray Mitchell

Re: apcupsd and ttyS0
« Reply #7 on: April 04, 2003, 03:25:33 PM »
Klaus
To uninstal you would do:
rpm -e apcupsd
and
rpm -e dmc-mitel-apcupsd

Leave the numbers and the rest of the name out.

Regards
Ray