[Nut-upsdev] Powercom 600AP USB support

Balogh Péter balogh.peter at cit.hu
Sat Sep 19 23:12:22 UTC 2009


Hi,

I know it's been a topic many times here, but I've searched the 
archives, googled for days, and I simply don't believe, that there is 
still no solution to this.
I'm using a PowerCom BNT-600AP ups with usb port.

I've downloaded the latest version from svn, compiled it, and tried to 
use it:
* megatec(_usb) - no luck, it did not find the UPS (I’ve read in this 
list, that this driver uses the same protocol)
* usbhid-ups - no information about the battery, only basic information 
about the UPS (it's communicated, so it's a start) (this could be the 
general usb driver?)
* powercom - here is the output of the driver (supposed to be able to 
communicate if cypress_m8 is present)

# ./powercom -DDDDD -a my -u root -x type=BNT

Network UPS Tools - PowerCom protocol UPS driver 0.12 (2.4.1-1993)

0.000000 send_to_all: SETINFO driver.parameter.port "/dev/ttyS0"

0.000159 send_to_all: SETINFO driver.parameter.type "BNT"

0.000265 debug level is '5'

0.001334 Flow control disable

0.001544 Num of bytes requested for reading from UPS: 16

3.004656 data receiving error (0 instead of 16 bytes)

3.004774 send_to_all: SETINFO device.type "ups"

3.004872 send_to_all: SETINFO ups.mfr "PowerCom"

3.004965 send_to_all: SETINFO ups.model "Unknown"

3.005057 send_to_all: SETINFO ups.serial "Unknown"

3.005148 send_to_all: SETINFO ups.model.type "BNT"

3.005250 send_to_all: SETINFO input.voltage.nominal "230"

3.005339 send_to_all: ADDCMD test.battery.start

3.005427 send_to_all: ADDCMD shutdown.return

3.005550 send_to_all: ADDCMD shutdown.stayoff

3.005727 Num of bytes requested for reading from UPS: 16

6.008828 data receiving error (0 instead of 16 bytes)

6.009091 dstate_init: sock /var/state/ups/powercom-my open on fd 5

6.009195 send_to_all: SETINFO driver.version "2.4.1-1993"

6.009289 send_to_all: SETINFO driver.version.internal "0.12"

6.009384 send_to_all: SETINFO driver.name "powercom"

6.009477 send_to_all: SETINFO driver.parameter.pollinterval "2"

6.009570 send_to_all: SETINFO device.mfr "PowerCom"

6.009662 send_to_all: SETINFO device.model "Unknown"

6.009753 send_to_all: SETINFO device.serial "Unknown"

6.009925 Num of bytes requested for reading from UPS: 16

9.013063 data receiving error (0 instead of 16 bytes)

9.013266 Num of bytes requested for reading from UPS: 16

12.016373 data receiving error (0 instead of 16 bytes)

12.016560 Num of bytes requested for reading from UPS: 16

15.019668 data receiving error (0 instead of 16 bytes)

15.019859 Num of bytes requested for reading from UPS: 16

^C 15.478328 data receiving error (-1 instead of 16 bytes)

17.021330 Signal 2: exiting

#lsusb –v

Bus 003 Device 002: ID 0d9f:0002 Powercom Co., Ltd

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 1.00

bDeviceClass 0 (Defined at Interface level)

bDeviceSubClass 0

bDeviceProtocol 0

bMaxPacketSize0 8

idVendor 0x0d9f Powercom Co., Ltd

idProduct 0x0002

bcdDevice 0.00

iManufacturer 1 POWERCOM CO., LTD.

iProduct 2 USB to Serial

iSerial 0

bNumConfigurations 1

Best regards,

Peter Balogh




More information about the Nut-upsdev mailing list