From owner-freebsd-usb@FreeBSD.ORG Wed Jan 27 11:01:44 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C52106568B for ; Wed, 27 Jan 2010 11:01:44 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id DBE7F8FC18 for ; Wed, 27 Jan 2010 11:01:43 +0000 (UTC) Received: from inchoate.gsoft.com.au (ppp121-45-156-224.lns6.adl6.internode.on.net [121.45.156.224]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id o0RB1fWR064007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 27 Jan 2010 21:31:41 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-usb@freebsd.org Date: Wed, 27 Jan 2010 21:31:28 +1030 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2486776.8WGYeOq4J4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201001272131.36343.doconnor@gsoft.com.au> X-Spam-Score: -1.686 () AWL,BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Subject: sysutils/nut and an MGE Ellipse 1000 UPS X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 11:01:44 -0000 --nextPart2486776.8WGYeOq4J4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I have an MGE UPS connected via USB and I am having trouble getting it=20 to work. I am trying the latest SVN trunk from the NUTdevs but I find it doesn't=20 enumerate everything from the UPS properly, eg [midget 21:10] ~/projects/nut-trunk >sudo /usr/local/libexec/nut/usbhid-ups= -D -D -D -a mge 6.238605 Path: UPS.PowerSummary.PresentStatus.Discharging, Type: Fea= ture, ReportID: 0x01, Offset: 2,=20 Size: 1, Value: 0.000000 6.238627 Report[buf]: (2 bytes) =3D> 01 13 6.238647 Path: UPS.PowerSummary.PresentStatus.Charging, Type: Featur= e, ReportID: 0x01, Offset: 1, Size:=20 1, Value: 1.000000 6.238669 Report[buf]: (2 bytes) =3D> 01 13 6.238676 Path: UPS.PowerSummary.PresentStatus.BelowRemainingCapacity= Limit, Type: Feature, ReportID:=20 0x01, Offset: 3, Size: 1, Value: 0.000000 6.240481 libusb_get_report: Unknown error 6.240646 Can't retrieve Report 02: Input/output error 6.240658 Can't initialize data from HID UPS or.. 2.489542 Report[get]: (2 bytes) =3D> 08 1e 2.489564 Path: UPS.PowerSummary.RemainingCapacityLimit, Type: Featur= e, ReportID: 0x08, Offset: 0, Size:=20 8, Value: 30.000000 2.491554 libusb_get_report: Unknown error 2.491662 Can't retrieve Report 09: Input/output error 2.491671 Path: UPS.PowerSummary.DelayBeforeShutdown, Type: Feature, = ReportID: 0x09, Offset: 0, Size: 32 5.530483 libusb_get_report: Unknown error 5.530576 Can't retrieve Report 0a: Input/output error 5.530586 Path: UPS.PowerSummary.DelayBeforeStartup, Type: Feature, R= eportID: 0x0a, Offset: 0, Size: 32 10.417508 libusb_get_report: Unknown error 10.417603 Can't retrieve Report 0c: Input/output error or.. 20.865729 Quick update... 20.867648 libusb_get_report: Unknown error 20.867744 Can't retrieve Report 0a: Input/output error 22.618705 upsdrv_updateinfo... 22.618729 Got to reconnect! Sometimes it seems to work for a while, other times it won't even get the=20 initial descriptor. I tried setting LIBUSB_DEBUG but it didn't seem to produce any output. I find that if I set 'pollonly' (ie disable interrupt pipe) it works considerably better but still glitches not infrequently. (ie upsc reports=20 stale data) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2486776.8WGYeOq4J4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBLYB0Q5ZPcIHs/zowRArd8AJ0ULlxlcCJFMMoSyOI2rR/E65s6lwCgqfto g5bDmcj+65kk8pjBBFH87lk= =Dg4f -----END PGP SIGNATURE----- --nextPart2486776.8WGYeOq4J4--