> New OpenSolaris user here,
> 
> I'm trying to get NUT (Network UPS Tools) to talk to
> my CyberPower 1500AVR UPS via a serial connection.
> Problem is, I don't know which /dev file is serial
> port COM1 (the serial connector on the back of my
> motherboard). In Linux, it's often /dev/ttyS0. What
> is it in OpenSolaris?
> 
> I tried /dev/tty[a,b,c], /dev/ttyd[0,1,2],
> /dev/term/[a,b,c] and /dev/cua[0,1,2] to no avail. Is
> there a way to find out which /dev is serial and
> which has a live connection?
> 
> I know that OSOL detects it since in the desktop
> there is a small icon that says it's running on
> AC...
> 
> Thanks

Looks to me like recent NUT does your UPS; it's listed at
http://www.networkupstools.org/compat/stable.html
and
http://www.networkupstools.org/compat/dev.html

Using port "a" as an example
/dev/ttya is just an alias for /dev/term/a

/dev/term/a and /dev/cua/a both refer to the same port.
However, /dev/cua/a does not block waiting for control
signals like carrier detect, and /dev/term/a does.
Typically, /dev/cua/a is used with a modem for outgoing
calls, or with tip for a direct connection, while /dev/term/a
is used for incoming calls (it will block until a call is received).
An exception might be if using a smart modem that reports status
with a program like mgetty that talks a lot to the modem; it
would probably need to use /dev/cua/a to get ring detect message
and the like.

I don't know if this applies to x86, but at least on older SPARC, the
first port ("a" or COM1 in Windows-speak) may get diagnostic system
messages during boot-up, and would be the console if a serial console
was configured.  Since it may get some messages even if serial console
is _not_ configured, if there is more than one port available, it may
be a better choice to leave it unused and use a second or subsequent
port instead.

The cable has to be right too; not sure whether you need a straight-through
or crossover cable (not familiar with the hardware).

The AC icon may have nothing to do with UPS monitoring, but only
indicate that the system thinks you're not on a laptop running from battery.
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to