[Nut-upsdev] Powercom BNT-2000AP(USB)
Александр Борисович
vtk-alexb at mail.ru
Mon May 1 18:35:46 UTC 2017
>Sunday, 30 april 2017, 14:42 +03:00 Jim Klimov <jimklimov at cos.ru> wrote:
>
>On April 28, 2017 9:11:59 AM GMT+03:00, "Александр Борисович" < vtk-alexb at mail.ru > wrote:
>>Hello all!
>>
>>Some days ago we received new UPS Powercom BNT-2000AP with USB
>>interface to replace an old staff and I've spent four last days trying
>>to connect it with NUT. I have a FreeBSD 8.4 box with NUT 2.7.2.
>>
>># dmesg|grep -i powercom
>>ugen0.3: <POWERCOM Co.,LTD> at usbus0
>>uhid0: <POWERCOM Co.,LTD HID UPS Battery, class 0/0, rev 1.10/0.01,
>>addr 3> on usbus0
>>uhid0: <POWERCOM Co.,LTD HID UPS Battery, class 0/0, rev 1.10/0.01,
>>addr 3> on usbus0
>>
>>I know that it's absent in hardware list, but I can't change anything
>>now for nearest 2-3 months. And I don't want to leave server
>>unmanaged.
>>I tried all powercom drivers and all of them were unsuccsessful.
>># /usr/local/libexec/nut/powercom -a BNT2000 -x type=BNT-other -x
>>port=/dev/ugen0.3 -DDD
>>Network UPS Tools - PowerCom protocol UPS driver 0.14 (2.7.2)
>> 0.000000 debug level is '3'
>> 0.000670 tcgetattr(/dev/ugen0.3): Inappropriate ioctl for device
>>I believe that it's right...
>>
>>The "best" results I received with usbhid-ups driver:
>># /usr/local/libexec/nut/usbhid-ups -a BNT2000 -DDD
>>Network UPS Tools - Generic HID driver 0.38 (2.7.2)
>>USB communication driver 0.32
>> 0.000000 debug level is '3'
>> 0.000557 upsdrv_initups...
>> 0.000744 Checking device (0D9F/0004) (/dev/usb//dev/ugen0.3)
>> 0.031233 - VendorID: 0d9f
>> 0.031240 - ProductID: 0004
>> 0.031245 - Manufacturer: unknown
>> 0.031248 - Product: unknown
>> 0.031252 - Serial Number: unknown
>> 0.031256 - Bus: /dev/usb
>> 0.031260 Trying to match device
>> 0.031268 Device matches
>> 0.080235 Unable to get HID descriptor (Unknown error)
>> 0.080248 HID descriptor, method 2: (9 bytes) => 09 21 00 01 00 01 22
>>c6 03
>> 0.080252 HID descriptor length 966
>> 0.090278 Unable to get Report descriptor: Input/output error
>> 0.090299 No appropriate HID device found
>> 0.090306 No matching HID UPS found
>>
>>Someone recommended me to try driver megatec smth like:
>>[ups]
>> driver = megatec_usb
>> port = "/dev/ugen0.2"
>>
>>But there is no driver megatec_usb nither in driver.list no in the
>>hardware list on the site. However, I tried
>>
>># /usr/local/libexec/nut/blazer_usb -a BNT2000 -x protocol=megatec -DDD
>>Network UPS Tools - Megatec/Q1 protocol USB driver 0.11 (2.7.2)
>> 0.000000 debug level is '3'
>> 0.000634 Checking device (0D9F/0004) (/dev/usb//dev/ugen0.3)
>> 0.030633 - VendorID: 0d9f
>> 0.030641 - ProductID: 0004
>> 0.030645 - Manufacturer: unknown
>> 0.030649 - Product: unknown
>> 0.030653 - Serial Number: unknown
>> 0.030657 - Bus: /dev/usb
>> 0.030661 Trying to match device
>> 0.030666 Device does not match - skipping
>> 0.030680 No appropriate HID device found
>> 0.030686 No supported devices found.
>>
>>Can anybody help me? I'm ready to provide any data/information on your
>>request and even to become a tester! :)
>>--
>>Thnx! Alexander
>>_______________________________________________
>>Nut-upsdev mailing list
>> Nut-upsdev at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
>
>Just in case, one thing that stands out in your post is nut-2.7.2. It is pretty old, meaning that newer releases or the github master can have more HW support. Did you try (or can you build and retry) your experiments with this newer code?
>
>Jim
>--
>Typos courtesy of K-9 Mail on my Redmi Android
Yes. I've downloaded new version of nut and compiled it but it gave no result. I tried all *usb drivers:
my simple usb.conf:
[BNT2000]
driver = blazer_usb
#driver = bcmxcp_usb
#driver = nutdrv_atcl_usb
#driver = richcomm_usb
#driver = riello_usb
#driver = tripplite_usb
port = auto
desc = "POWERCOM BNT-2000AP"
And here is the results:
# bcmxcp_usb -a BNT2000 -DDD
Network UPS Tools - BCMXCP UPS driver 0.31 (2.7.4)
USB communication subdriver 0.22
0.000000 debug level is '3'
0.000509 entering nutusb_open()
0.000669 Can't open POWERWARE USB device
0.000678 Can't open POWERWARE USB device
0.000682 Can't open POWERWARE USB device
0.000686 Can't open POWERWARE USB device
Unable to find POWERWARE UPS device on USB bus (USB)
Things to try:
- Connect UPS device to USB bus
- Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
See upsdrvctl(8) and ups.conf(5).
0.000700 Fatal error: unusable configuration
# blazer_usb -a BNT2000 -DDD
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
0.000000 debug level is '3'
0.000618 Checking device (0D9F/0004) (/dev/usb//dev/ugen0.3)
0.030823 - VendorID: 0d9f
0.030831 - ProductID: 0004
0.030835 - Manufacturer: unknown
0.030838 - Product: unknown
0.030842 - Serial Number: unknown
0.030846 - Bus: /dev/usb
0.030850 - Device release number: 0001
0.030854 Trying to match device
0.030859 Device does not match - skipping
0.030873 No appropriate HID device found
0.030880 No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer_usb).
# nutdrv_atcl_usb -a BNT2000 -DDD
Network UPS Tools - 'ATCL FOR UPS' USB driver 1.1 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '3'
0.000466 Searching for USB device...
0.000624 Checking USB device [0d9f:0004] (/dev/usb//dev/ugen0.3)
0.030651 No matching USB device found
5.031591 Communications with UPS lost: Can't open USB device, retrying ...
5.031728 Checking USB device [0d9f:0004] (/dev/usb//dev/ugen0.3)
5.061596 No matching USB device found
10.063539 Communications with UPS lost: Can't open USB device, retrying ...
10.063670 Checking USB device [0d9f:0004] (/dev/usb//dev/ugen0.3)
10.093551 No matching USB device found
15.095487 Communications with UPS lost: Can't open USB device, retrying ...
15.095630 Checking USB device [0d9f:0004] (/dev/usb//dev/ugen0.3)
15.125495 No matching USB device found
15.125505 Unable to find ATCL FOR UPS
Things to try:
- Connect UPS device to USB bus
- Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
See upsdrvctl(8) and ups.conf(5).
Fatal error: unusable configuration
# richcomm_usb -a BNT2000 -DDD
Network UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '3'
5.032514 Communications with UPS lost: Can't open USB device, retrying ...
10.063464 Communications with UPS lost: Can't open USB device, retrying ...
15.094413 Communications with UPS lost: Can't open USB device, retrying ...
20.125360 Communications with UPS lost: Can't open USB device, retrying ...
25.157308 Communications with UPS lost: Can't open USB device, retrying ...
30.188258 Communications with UPS lost: Can't open USB device, retrying ...
35.219206 Communications with UPS lost: Can't open USB device, retrying ...
40.251154 Communications with UPS lost: Can't open USB device, retrying ...
45.283102 Communications with UPS lost: Can't open USB device, retrying ...
50.315050 Warning: excessive comm failures, limiting error reporting
50.315067 Communications with UPS lost: Can't open USB device, retrying ...
100.631536 Warning: excessive comm failures, limiting error reporting
100.631552 Communications with UPS lost: Can't open USB device, retrying ...
150.946022 Warning: excessive comm failures, limiting error reporting
150.946037 Communications with UPS lost: Can't open USB device, retrying ...
# riello_usb -a BNT2000 -DDD
Network UPS Tools - Riello USB driver 0.03 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '3'
0.000630 Checking device (0D9F/0004) (/dev/usb//dev/ugen0.3)
0.030931 - VendorID: 0d9f
0.030939 - ProductID: 0004
0.030943 - Manufacturer: unknown
0.030946 - Product: unknown
0.030950 - Serial Number: unknown
0.030954 - Bus: /dev/usb
0.030958 - Device release number: 0001
0.030962 Trying to match device
0.030967 Device does not match - skipping
0.030980 No appropriate HID device found
0.030986 No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 riello_usb).
# tripplite_usb -a BNT2000 -DDD
Network UPS Tools - Tripp Lite OMNIVS / SMARTPRO driver 0.29 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.
0.000000 debug level is '3'
0.000616 Checking device (0D9F/0004) (/dev/usb//dev/ugen0.3)
0.031068 - VendorID: 0d9f
0.031075 - ProductID: 0004
0.031079 - Manufacturer: unknown
0.031083 - Product: unknown
0.031087 - Serial Number: unknown
0.031091 - Bus: /dev/usb
0.031096 - Device release number: 0001
0.031100 Trying to match device
0.031105 Device does not match - skipping
0.031118 No appropriate HID device found
0.031124 No matching USB/HID UPS found
One man show me result of his programm on BNT-1500 (as he said):
#/usr/local/libexec/nut/megatec_usb -a ups -DDD
Network UPS Tools - Megatec protocol driver 1.6 (2.4.1)
Serial-over-USB transport layer 0.10
debug level is '3'
Checking device (0665/5161) (/dev/usb//dev/ugen0.2)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor
- Product: USB to Serial
- Serial Number: unknown
- Bus: /dev/usb
Trying to match device
Device matches
DTR=1, RTS=0
Starting UPS detection process...
Asking for UPS information ...
get_data_phoenix: got so far [(235.1 2]
get_data_phoenix: got so far [(235.1 235.1 231]
get_data_phoenix: got so far [(235.1 235.1 231.2 000 4]
get_data_phoenix: got so far [(235.1 235.1 231.2 000 49.6 27.7]
get_data_phoenix: got so far [(235.1 235.1 231.2 000 49.6 27.7 25.0 00]
He said that he use nut 2.7.4, but as you can see, the driver has version 2.4.1. Unfortunately I can't make nut 2.4.1 yet to try this version of driver, I'll continue my attempts on this week.
--
Thnx! Alexander
More information about the Nut-upsdev
mailing list