[Nut-upsuser] [nut-hal-drivers] Battery level is not correct for Ippon Back Comfo Pro UPS with Megatec protocol.

Alexander Chemeris alexander.chemeris at gmail.com
Wed Jun 25 21:26:46 UTC 2008


Hi,

On Wed, Jun 25, 2008 at 10:58 PM, Arjen de Korte <nut+users at de-korte.org> wrote:
>> I read that I can use battvolts option to fix this problem, but HAL
>> version of
>> nut does not come with any config files. So, I'm guess it should be
>> somehow
>> fixed in sources?
>
> If you're lucky enough that your UPS provides enough clues about the type
> and modelnumber, it probably could be done. If not (which is not entirely
> unlikely), it will not report this and in that case, you're stuck between
> an rock and a hard place... :-(
>
> Posting the relevant output of 'lsusb -vvv' is a starter, among the output
> from the 'megatec_usb' driver when running in debug mode ('-DDD').

Well.. lets try. I believe there must the way through. As a last resort
it should be possible to allow user select concrete model or parameter
set by hands..

I haven't dealt with hal drivers before, so I would appreciate if you describe
more precisely how to run it in debug mode :)

Output of 'lsusb -vvv' is following. For me it seems we have nothing like
ID, which could be used...

Bus 002 Device 002: ID 06da:0003 Phoenixtec Power Co., Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x06da Phoenixtec Power Co., Ltd
  idProduct          0x0003
  bcdDevice            4.00
  iManufacturer           3 OMRON
  iProduct                1 USB UPS
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      27
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              20
Device Status:     0x0000
  (Bus Powered)


--
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000



More information about the Nut-upsuser mailing list