I've posted this before being subscribed but was thwarted by moderation. I have a new UPS, actual manufacturer unknown. It comes with USB and serial connections, and a CD with windows software and some old unix software for serial support only. I'm using pretty much bleeding edge linux, and I want to avoid rs-232 if possible. Am I hopelessly naive? This is what lsusb says: Bus 006 Device 002: ID ffff:0000 Device Descriptor: ?bLength ? ? ? ? ? ? ? ?18 ?bDescriptorType ? ? ? ? 1 ?bcdUSB ? ? ? ? ? ? ? 1.00 ?bDeviceClass ? ? ? ? ? ?0 (Defined at Interface level) ?bDeviceSubClass ? ? ? ? 0 ?bDeviceProtocol ? ? ? ? 0 ?bMaxPacketSize0 ? ? ? ? 8 ?idVendor ? ? ? ? ? 0xffff ?idProduct ? ? ? ? ?0x0000 ?bcdDevice ? ? ? ? ? ?1.00 ?iManufacturer ? ? ? ? ? 1 ?iProduct ? ? ? ? ? ? ? ?2 068A ?iSerial ? ? ? ? ? ? ? ? 0 ?bNumConfigurations ? ? ?1 ?Configuration Descriptor: ? ?bLength ? ? ? ? ? ? ? ? 9 ? ?bDescriptorType ? ? ? ? 2 ? ?wTotalLength ? ? ? ? ? 27 ? ?bNumInterfaces ? ? ? ? ?1 ? ?bConfigurationValue ? ? 1 ? ?iConfiguration ? ? ? ? ?0 ? ?bmAttributes ? ? ? ? 0x80 ? ? ?(Bus Powered) ? ?MaxPower ? ? ? ? ? ? ?100mA ? ?Interface Descriptor: ? ? ?bLength ? ? ? ? ? ? ? ? 9 ? ? ?bDescriptorType ? ? ? ? 4 ? ? ?bInterfaceNumber ? ? ? ?0 ? ? ?bAlternateSetting ? ? ? 0 ? ? ?bNumEndpoints ? ? ? ? ? 0 ? ? ?bInterfaceClass ? ? ? ? 3 Human Interface Device ? ? ?bInterfaceSubClass ? ? ?0 No Subclass ? ? ?bInterfaceProtocol ? ? ?0 None ? ? ?iInterface ? ? ? ? ? ? ?0 ? ? ?** UNRECOGNIZED: ?09 21 00 01 00 01 22 78 02 Device Status: ? ? 0x0000 ?(Bus Powered) The ffff:0000 is mighty suspicious, like someone didn't want to pay for a USB consortium membership. $ sudo /usr/sbin/upsdrvctl -DDD start myups Network UPS Tools - UPS driver controller 2.4.1 Starting UPS: myups exec: /lib/nut/usbhid-ups -a myups Network UPS Tools - Generic HID driver 0.34 (2.4.1) USB communication driver 0.31 No matching HID UPS found Driver failed to start (exit status=1) $ sudo /usr/sbin/upsdrvctl -DDD start myups Network UPS Tools - UPS driver controller 2.4.1 Starting UPS: myups exec: /lib/nut/usbhid-ups -a myups Network UPS Tools - Generic HID driver 0.34 (2.4.1) USB communication driver 0.31 Using subdriver: EXPLORE HID 0.1 This is all I could get from usbmon, with explore. This is just turning on the driver. I don't know how to cause the UPS to send any more info. $ sudo usbmon -i 6 265b7600 0.695954 S Ci:6:002:0 s 80 06 0300 0000 00ff 255 < 265b7600 0.700413 C Ci:6:002:0 0 4 = 04030904 265b7600 0.700431 S Ci:6:002:0 s 80 06 0301 0409 00ff 255 < 265b7600 0.705412 C Ci:6:002:0 0 4 = 04032000 265b7600 0.705420 S Ci:6:002:0 s 80 06 0300 0000 00ff 255 < 265b7600 0.710412 C Ci:6:002:0 0 4 = 04030904 265b7600 0.710427 S Ci:6:002:0 s 80 06 0302 0409 00ff 255 < 265b7600 0.716412 C Ci:6:002:0 0 10 = 0a033000 36003800 4100 265b7600 0.716455 S Co:6:002:0 s 01 0b 0000 0000 0000 0 265b7600 0.719412 C Co:6:002:0 0 0 265b7600 0.719427 S Ci:6:002:0 s 81 06 2100 0000 0009 9 < 265b7600 0.724412 C Ci:6:002:0 0 9 = 09210001 00012278 02 265b7600 0.724428 S Ci:6:002:0 s 81 06 2200 0000 0278 632 < 265b7600 0.806424 C Ci:6:002:0 0 632 = 05860904 a1010584 091ea100 8501091f 65007504 95011500 250f6500 b1027504 I've looked at http://www.usb.org/developers/devclass_docs/pdcv10.pdf (linked from http://www.networkupstools.org/protocols/) and deciphered the "** UNRECOGNIZED: ?09 21 00 01 00 01 22 78 02" line from lsusb, but I don't know how to get it to spew out the 0x7802 bytes of reports the document describes. I suppose that I can install Windows in a virtual machine, pass the usb device from the host into the VM, install the Windows software that came with it (I don't know but I suppose it does work) and reverse engineer a driver from usbmon captures. But that sounds like a lot of work. And I'll need to buy Windows. Can anyone suggest an alternative? -Zeev
Citeren Zeev Tarantov <zeev.tarantov op gmail.com>:> I have a new UPS, actual manufacturer unknown. It comes with USB and > serial connections, and a CD with windows software and some old unix > software for serial support only. I'm using pretty much bleeding edge > linux, and I want to avoid rs-232 if possible. Am I hopelessly naive? > > This is what lsusb says: > > Bus 006 Device 002: ID ffff:0000[...]> The ffff:0000 is mighty suspicious, like someone didn't want to pay > for a USB consortium membership.This isn't a device that is supported by usbhid-ups. However, we have seen the bogus VID:PID combination before. You might want to give the blazer_usb or megatec_usb drivers a try. If you're lucky, these might give you limited support to at least monitor the status of the UPS. Note that neither driver will support the shutdown function. If you're willing to decode how that works for this UPS (if possible at all), you'll probably have to snoop the communication between Windows driver and the UPS. Best regards, Arjen -- Please keep list traffic on the list
RE: http://lists.alioth.debian.org/pipermail/nut-upsuser/2009-August/005344.html Arjen de Korte wrote:> This isn't a device that is supported by usbhid-ups. However, we have > seen the bogus VID:PID combination before. You might want to give the > blazer_usb or megatec_usb drivers a try. If you're lucky, these might > give you limited support to at least monitor the status of the UPS. > > Note that neither driver will support the shutdown function. If you're > willing to decode how that works for this UPS (if possible at all), > you'll probably have to snoop the communication between Windows driver > and the UPS.> Best regards, ArjenThank you! It is indeed the same UPS described by Mutlu in http://lists.alioth.debian.org/pipermail/nut-upsuser/2009-August/005300.html (a google search on the firmware IN01064B turns up the thread) with blazer_usb driver I get: $ upsc myups battery.voltage: 27.00 battery.voltage.nominal: 24.0 beeper.status: disabled driver.name: blazer_usb driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.vendorid: ffff driver.version: 2.4.1 driver.version.internal: 0.03 input.current.nominal: 0.0 input.frequency: 50.0 input.frequency.nominal: 50 input.voltage: 222.0 input.voltage.fault: 140.0 input.voltage.nominal: 230 output.voltage: 222.0 ups.delay.shutdown: 30 ups.delay.start: 180 ups.firmware: IN01064B ups.load: 9 ups.mfg: ups.model: ups.productid: 0000 ups.status: OL ups.temperature: 25.0 <-- wrong and doesn't change ups.type: offline / line interactive ups.vendorid: ffff The technical specs and manual wording and illustrations for my ups and the one from http://www.informups.com/informer_compact.html appear to be exactly the same, except for the plastic cover on the front. Compare the two pictures http://www.informups.com/images/informer_compact.jpg and http://www.eitan-tut.co.il/var/img/lego/thumb/6520_1 (no file extension, but is a jpg) My printed manual has illustrations for more variants. I still don't know who the manufacturer is or how to get anything more out of it, but it's progress. If I get anywhere snooping on the Windows drivers I'll post more. -Zeev
On Wed, Aug 26, 2009 at 2:36 AM, Manuel Wolfshant<wolfy at nobugconsulting.ro> wrote:> On 08/26/2009 02:18 AM, Zeev Tarantov wrote: > > I still don't know who the manufacturer is > > Once can assume that it is http://www.informups.com/company.html ...The contact info for Israel on http://www.informups.com/worldwide.html points to Advice, the biggest retail UPS provider in the country. They sell this: http://www.advicepower.com/r_productDetails.aspx?PID=579 This is not what I have. This is not found anywhere on http://www.informups.com/ups.html Looks like Advice don't sell Inform products for the line interactive pure sine wave market niche. Also, Inform sounds like a serious company. Why would their product use ffff:0000 id? I believe Inform design their products but offshore the manufacturing to China, like every other company in the world. Maybe the OEM lunched its R&D arm by reverse engineering the products they manufactured, changed the id and sold them off off-brand. Like the Chinese do for weapons, cars, and electronics. My printed user's manual, which is similar (except for layout) to http://www.informups.com/pdf/informer_compact_manuals.pdf doesn't have the first page with the company's name and logo. In fact I've just found it on google using the number at the top right corner: http://www.ablerex.com.tw/manual/JP/JP-PRO_user_manual_192321362000002.pdf The model name (JP Pro) is identical. And look at that: http://www.uisabler.com.tw/indexe.htm "Ablerex is the world?s leading manufacturer of uninterruptible power supplies (UPS) and power quality devices (PQD), with a strong Research and Development team committed to creating and building innovative power electronics products to maintain power consistency and continuity. Initially, the company first production lines and sales office was set up at Suzhou, China to make its debut in China market. Progressively, to meet delivery demands and competitive pricing, our first-owned manufacturing plant was established in Suzhou in 2005. Our second manufacturing facility which is five (5) times larger than the current will be completed in 2008." Here is the product page. http://www.uisabler.com.tw/HTM/product-jupiter.htm I like the "Patent RS232 and USB Communication Interfaces" from the brochure. http://www.uisabler.com.tw/pdf/Jupiter_011808.pdf -Zeev