Are you running the program with a user with dialer privileges? First, make sure your account has dialer privileges -is part of dialer group-. Then Shortcut pins 2 and 3 of your black cable while connected to the pc, and try on a shell 'cu -l /dev/ttyb'. If serial port is working, any keyboard stroke should be echoed in screen. If you push any letter and don't see nothing, then that's not your serial's device.

I'm not sure on sparc, but it could be /dev/tty00, /dev/cua00...

Thanasis escribio':
on 06/10/2009 09:29 AM jared r r spiegel wrote the following:
  `make search' is awesome, but also check the Makefile for the
  port.  or heck, on the $arch in question you could worst
  case try `make package' and see if it works.  if it doesn't,
  the pkg is probably marked broken or something - in which case
  i'd check archives of ports@ (or cvsweb) and hope i can find why :).
OK. Both built fine. ;-)
So now I am trying to setup apc-upsd.
The machine is a old sparc SPARCstation 5 Model 110
(http://www.obsolyte.com/sun_ss5/ss5_110.pdf)
I have set the serial ports to RS-232 mode (by changing the jumpers).

The file apc-upsd.conf  I use is as follows:

# cat /etc/apc-upsd.conf #
#       apc-upsd.conf
#

# ups is connected to ...
# OpenBSD ... device /dev/tty00

#device /dev/tty00
device /dev/ttyb

#
# startuptest sends a 'test' sequence to the smart series
#

startuptest     ON

# debug ON|OFF
#
# OFF ... normal operation
# ON .... don't start as daemon, do tests in smart mode

#debugmode OFF
debugmode ON

# smartmode
# ON ...... APC Smart-UPS with black cable
# OFF ..... APC BackUPS with gray cable

smartmode ON

#
# extendedsmart
#
# gives temperature info etc ..
#

extendedsmart ON

# time till shutdown in seconds

time 15

# execute this at shutdown time

execute /sbin/halt

# pidfile

pidfile /var/run/upsd.pid

# every (n) seconds output information from the ups
# to syslog

infotime 3600
----------file ends here-------------

 The problem is when I run apc-upsd :

# apc-upsd

/etc/apc-upsd.conf, 55 lines:
==========================================
device ............... /dev/ttyb
pidfile .............. /var/run/upsd.pid
exec script .......... /sbin/halt
debug mode ........... 1
wait seconds ......... 15
infotime seconds ..... 3600
smartmode ............ 1
extended smartinfo ... 1
startuptest .......... 1


not forking in debug mode ...

... and stays there for ever, whereas it should print the ups' stats.
Which means probably it does not communicate with the UPS.
The UPS is an APC Smart-UPS SC 620VA 230V
(http://www.apc.com/resource/include/techspec_index.cfm?base_sku=SC620I)
The UPS' cable is a black serial cable supplied by apc and tested to
work on the same UPS with apcupsd on linux.
Any help for testing my serial port (/dev/ttyb) connection to the UPS?

Reply via email to