No subject


Wed Dec 10 08:32:44 UTC 2008


will be used by Nut's powercom driver.
I've failed to google anything about this UPS working with Linux.

>
> What does 'lsusb -d 0d9f:0002' say for this device?
Bus 001 Device 002: ID 0d9f:0002 Powercom Co., Ltd

The current progress is like this:
With help from linux-hotplug guys
(http://thread.gmane.org/gmane.linux.hotplug.devel/13551) I've managed
to /dev/ttyUSB0 to be registered, but:
# /sbin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools - PowerCom and similars protocol UPS driver $
Revision: 0.5 $ (2.2.2)

writing error
# cat /etc/nut/ups.conf
[PRPC650]
  driver = powercom
  port = /dev/ttyUSB0
  desc = "Test"

Trying with strace shows the following:
12369 open("/dev/ttyUSB0", O_RDWR|O_EXCL|O_NOCTTY|O_NONBLOCK) = 4
12369 flock(4, LOCK_EX|LOCK_NB)         = 0
12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig
-icanon -echo ...}) = 0
12369 ioctl(4, TCFLSH, 0)               = 0
12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig
-icanon -echo ...}) = 0
12369 ioctl(4, SNDCTL_TMR_START or TCSETS, {B1200 -opost -isig -icanon
-echo ...}) = 0
12369 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig
-icanon -echo ...}) = 0
12369 ioctl(4, TIOCMBIC, [TIOCM_DTR])   = 0
12369 ioctl(4, TIOCMBIS, [TIOCM_RTS])   = 0
12369 write(4, "\1"..., 1)              = -1 EAGAIN (Resource
temporarily unavailable)
12369 write(2, "writing error\n"..., 14) = 14

Any hint please?

--
Zaar



More information about the Nut-upsuser mailing list