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?
On 12/11/06, Vitaly Oborsky <undersmoker@gmail.com> wrote:> 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)Have you tried the default "Trust" protocol? Are you sure that the serial cable is appropriate for sending commands to the UPS (as opposed to contact-closure signalling)? You could try running the driver as follows: strace -o /tmp/powercom.log -f /lib/nut/powercom -a powercom -DDD The logfile '/tmp/powercom.log' will help narrow down which code path is returning '-1'. Bear in mind that I do not know anything specific about this driver. -- - Charles Lepple
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 >