Peter,

Vitaly sent me the strace output off-list, and it appears to be a timeout issue:

29723 open("/dev/ttyS0", O_RDWR|O_NONBLOCK|O_EXCL|O_NOCTTY) = 6
29723 flock(6, LOCK_EX|LOCK_NB)         = 0
[...]
29723 write(6, "\1", 1)                 = 1
29723 select(7, [6], NULL, NULL, {3, 0}) = 0 (Timeout)
29723 write(2, "data receiving error (-1 instead"..., 46) = 46
29723 select(9, [8], NULL, NULL, {2, 0}) = 0 (Timeout)
29723 write(6, "\1", 1)                 = 1
29723 select(7, [6], NULL, NULL, {3, 0}) = 0 (Timeout)
29723 write(2, "data receiving error (-1 instead"..., 46) = 46

Vitaly: I'm guessing you tried both /dev/tts/0 and /dev/ttyS0?

On 12/13/06, Peter Selinger <[EMAIL PROTECTED]> wrote:
Did you set correct permissions on /dev/tts/0? If that device is owned
by root, then your driver cannot write to or read from it. -- Peter

Vitaly Oborsky wrote:
>
> Good afternoon. I try to put nut on gentoo. Has executed installation
> by a standard command emerge nut. All has passed successfully. I use
> UPS POWERCOM BNT-1500AP. It is connected to serial port 1, i.e. for my
> system it/dev/tts/0. In/etc/nut/ups.conf
> [powercom]
> driver = powercom
> port = /dev/tts/0
> desc = "PowerCom BNT-1500AP on IP-PBX"
> modelname = "BNT-1500AP"
> linevoltage = 230
> type = KIN1500AP
>
> also trying:
>
> [powercom]
> driver = powercom
> port = /dev/tts/0
> desc = "PowerCom BNT-1500AP on IP-PBX"
> modelname = "BNT-1500AP"
> linevoltage = 230
> type = Egys
>
>
> At start by a command/etc/init.d/upsdrv start gives out the following:
>
>  * Starting UPS drivers ...
> Network UPS Tools - UPS driver controller 2.0.4
> Network UPS Tools - PowerCom and similars protocol UPS driver $
> Revision: 0.5 $ (2.0.4)
>
> data receiving error (-1 instead of 16 bytes)
>
> What correct parameters for BNT-1500AP?
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>


_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser



--
- Charles Lepple

_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to