[Nut-upsuser] SOS : Help needed for UPS Centralion Blazer 2000VA
USB
Guillaume JAOUEN
guillaume.jaouen at rlconsultant.fr
Thu Apr 13 13:56:52 UTC 2006
Hello,
In order to try the ups monitoring, i've compiled the latest stable version
of nut (2.0.3)
This is the debug output I get from some drivers I've to test as Arnaud asks
me :
Test of the Blazer USB :
Fixed owner for device /dev/usb/hiddev0 -> nut:nut and chmod 0600 for tests
# - with newhidups with port = auto :
ns1:/usr/local/ups/bin# ./newhidups -DDDD -u nut -a blazer2000usb
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3)
debug level is '4'
Checking device (0000/0000) (003/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (003/002)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: unknown
- Serial Number: unknown
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching USB/HID UPS found
# - with bcmxcp_usb with port = /dev/usb/hiddev0 :
ns1:/usr/local/ups/bin# ./bcmxcp_usb -DDDD -u nut -a blazer2000usb
Network UPS Tools - BCMXCP UPS driver 0.10 (2.0.3)
debug level is '4'
Can't open POWERWARE USB device, retrying ...
Unable to find POWERWARE UPS device on USB bus
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
# - with blazer with port = /dev/usb/hiddev0 :
ns1:/usr/local/ups/bin# ./blazer -DDDD -u nut -a blazer2000usb
Network UPS Tools - Blazer UPS driver 0.07 (2.0.3)
debug level is '4'
tcgetattr(/dev/usb/hiddev0): Invalid argument
# - with blazer with port = /proc/bus/usb/003/002 :
ns1:/usr/local/ups/bin# ./blazer -DDDD -u root -a blazer2000usb
Network UPS Tools - Blazer UPS driver 0.07 (2.0.3)
debug level is '4'
tcgetattr(/proc/bus/usb/003/002): Inappropriate ioctl for device
# - with bcmxp_usb with port = /proc/bus/usb/003/002 :
ns1:/usr/local/ups/bin# ./bcmxcp_usb -DDDD -u root -a blazer2000usb
Network UPS Tools - BCMXCP UPS driver 0.10 (2.0.3)
debug level is '4'
Can't open POWERWARE USB device, retrying ...
Can't open POWERWARE USB device, retrying ...
Can't open POWERWARE USB device, retrying ...
Can't open POWERWARE USB device
Unable to find POWERWARE UPS device on USB bus
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
# - with newhidups with port = /proc/bus/usb/003/002 :
ns1:/usr/local/ups/bin# ./newhidups -DDDD -u root -a blazer2000usb
Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3)
debug level is '4'
Checking device (0000/0000) (003/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: USB UHCI-alt Root Hub
- Serial Number: d400
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0665/5161) (003/002)
- VendorID: 0665
- ProductID: 5161
- Manufacturer: Cypress Semiconductor # This is the ioctl of the usb
- Product: USB to Serial
- Serial Number: unknown
- Bus: 003
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (002/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: USB UHCI-alt Root Hub
- Serial Number: d800
- Bus: 002
Trying to match device
Device does not match - skipping
Checking device (0000/0000) (001/001)
- VendorID: 0000
- ProductID: 0000
- Manufacturer: unknown
- Product: USB UHCI-alt Root Hub
- Serial Number: dc00
- Bus: 001
Trying to match device
Device does not match - skipping
No appropriate HID device found
No matching USB/HID UPS found
I think that the newhidups driver can't see the ups because there's nothing
to convert the io data of the cypress Serial-to-USB into an understandable
data that can be managed after translation in a device like /dev/usb/hiddev0
for example. The system need something in order to read the io data of the
Cypress Serial-to-USB what explain that when I do cat /dev/usb/hiddev0 and
interrupt the AC power of the UPS, the system can't catch any data from the
ups.
Certainly a module driver is needed by the kernel, I'll contact Cypress
Semiconductor in order to know if there's one.
Best regards,
Guillaume JAOUEN.
-----Message d'origine-----
De : cefrodrigues at gmail.com [mailto:cefrodrigues at gmail.com] De la part de
Carlos Rodrigues
Envoyé : mercredi 12 avril 2006 02:29
À : Guillaume JAOUEN
Cc : nut-upsuser at lists.alioth.debian.org
Objet : Re: [Nut-upsuser] SOS : Help needed for UPS Centralion Blazer 2000VA
USB
That hardware doesn't have a serial port right?
I think that UPS could be supported if only one could configure a
"ttyUSB" with that serial-usb converter.
I (temporarily) have a model with an USB port here, and I would like
to see if I could get it to work with "megatec"/"powermust" without
resorting to some HID/USB magic...
The protocol used seems to be the same, so the only thing needed is to
configure a emulated serial port. Anyone has any ideas?
On 4/11/06, Guillaume JAOUEN <guillaume.jaouen at rlconsultant.fr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> Hello,
>
> I leave a mail here because I can't find any solution in order to get the
> nut working with this UPS despite I search everywhere on the net.
>
> I've bought this UPS recently after that an MGE-UPS Ellipse 1200 USB burn.
>
> I've those information about the UPS :
>
> Reseller link : http://www.alpha-power-technologie.com/images/GPi-usb.pdf
>
> In his catalogue, the product is called Global Power GPi-2000BZ
>
> This UPS has monitoring software called Winpower
> 2.0(http://www.ups-software-download.com/) which is developed by
> Centralion.
>
> My system is a Debian Sarge 3.1 with a 2.4.32 kernel and built-in HID USB
> support. (this kernel was working perfectly well with the MGE-UPS HID UPS
> Ellipse 1200 and nut driver newhidups)
>
> I've tried to set up winpower under debian but get an RMI server failure
at
> boot. I also see that the setup script wasn't set correctly for Debian,
> even
> after fixed PATH variables and right rc.d scripts...
>
> So I went back on nut and tried to solve this problem.
>
> On the Centralion Web site I found an UPS that seems to be the same as
mine
> (blazer 2000VA Spec.
>
http://www.centralion.com/html/product/back-Product-ups-blazer1000-spec.htm
> and brochure
> http://www.centralion.com/dm-download/Blazer1-2K/Blazer1K-2K.zip)
>
> This UPS use megatec protocol over USB I think. Below are details catch
> from the console :
>
> When I plug the UPS on the USB port I get :
> # lsusb
> Bus 003 Device 005: ID 0665:5161
>
> If I do cat /dev/usb/hiddev0 the system seems to be reading on the device
> but no characters appears on the console...
>
> If I unplug the UPS the cat /dev/usb/hiddev0 command stop working so I
> think the system see the UPS on this device.
>
> The usbview show me this on the device :
>
> USB to Serial
> Manufacturer: Cypress Semiconductor
> Speed: 1,5 Mb/s (low)
> USB Version: 1.10
> Device Class: 00(ifc )
> Device Subclass: 00
> Device Protocol: 00
> Maximum Default Endpoint Size: 8
> Number of Configurations: 1
> Vendor Id: 0665
> Product Id: 5161
> Revision Number:0.02
>
> Config Number: 1
> Number of Interfaces: 1
> Attributes: 80
> MaxPower Needed: 100mA
>
> Interface Number: 0
> Name: hid
> Alternate Number: 0
> Class: 03(HID )
> Sub Class: 0
> Protocol: 0
> Number of Endpoints: 1
>
> Endpoint Adderss: 81
> Direction: in
> Attribute: 3
> Type: Int.
> Max Packet Size: 8
> Interval: 32ms
>
> If someone could help me, it'll be really nice, as I've tried newhidups -
> fentoups - energized drivers without success.
>
> I think my problem come from the USB to serial chipset from Cypress which
> is not included into newhidups but it's out of what I can manage.
>
> Best regards,
>
> Guillaume JAOUEN.
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP Desktop 9.0.2 (Build 2424)
>
> iQIVAwUBRDvh/IBhxpjgV9LlAQHhohAAjMCjEVWlbDSiCQohipHPVZ0sEplQX6Ef
> VhgwxadPwC1oPJ1HHlOiUelOAx1GQ9IDhxizBI7bGd4N5+njRbzRAw+aGZjXH4jA
> IPAoz9aNpEuirBunA1etk10o4eIiiYH3rAoCiWhDLzNnoIa7tAyr9RPVLR6ff4HY
> VzUDve6INIuKOzH1LaLvgYab3ZzzoG//A2eyoA03a7dRsXfgVwqL5nYYDXQdWVDm
> R/hru9NP14/SquT5I9jKjqoASnyJG0+p93b/7y3JvkC6ELARqNCzvQXozDlf8InE
> r0WOPiBh43lMH3OXTD6EF2/JViRfOG4Ybt0Cb+HO0BRQQ1MIeigjUIs17ivvZxFI
> KEvSV03LHhmbGPUqgiyCow6jRB1bxhaA8bDHj2GnyoYUfLFxsHtEbAJ9ZAQwygUA
> o88KxCRpvB9v4RRE+ZB4dJerlGPpZ42pUbtm+rxV3U9IDzaK85t83VJlJpeBczo9
> 8BlS9rtC21ocpi3B6fKo1FnEnSiGVozfmLzYi7lFruGNvu5iA38F6nFrp/p9mt8I
> ZC1OPzy0cXdXyDZHP3C7Kt4j/A+pyDTqA9H7y3Cy1x1YUWleqW/xMMcVLziKSMQp
> yXnbLytjJWmblRvQSdvc6+1IlKWZuiYKiOd4w/MOdDPdZTqL54pPkVyydzyfY8NN
> y749+rz/+aY=
> =Gya8
> -----END PGP SIGNATURE-----
>
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
--
Carlos Rodrigues
More information about the Nut-upsuser
mailing list