From owner-freebsd-stable@FreeBSD.ORG Fri Jun 16 02:18:52 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A481E16A41A for ; Fri, 16 Jun 2006 02:18:52 +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 A8B7D43D5F for ; Fri, 16 Jun 2006 02:18:41 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.25]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k5G2IXGj048999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Jun 2006 11:48:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Fri, 16 Jun 2006 11:48:31 +0930 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1485517.AHaUuGEUD9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200606161148.32813.doconnor@gsoft.com.au> X-Spam-Score: -1.36 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Subject: USB MGE UPS problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2006 02:18:52 -0000 --nextPart1485517.AHaUuGEUD9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am trying to use an MGE Pulsar Extreme UPS with the NUT port using the=20 newhidups driver. I can read the values just fine but I can't set anything which precludes th= e=20 PC from shutting the UPS off (or in fact configuring it in any way). The=20 error is... =2E.. Looking up DelayBeforeStartup usb_control_msg: 161 1 791 0 0x514f34 8 4000 Report : (8 bytes) =3D> 17 FF FF FF CB 1F 51 0A =3D>> SET: Before set: -10.00 (120) =3D>> SET: after exp: 12/12.00 (exp =3D 0.10) PhyMax =3D 0, PhyMin =3D 0, LogMax =3D 65535, LogMin =3D -1 =3D>> SET: after PL: 12 =3D=3D> Report after setvalue: (8 bytes) =3D> 17 0C 00 00 CB 1F 51 0A usb_control_msg: 33 9 791 0 0x514f34 8 4000 USB error: error sending control message: Input/output error Set report failed =46AILED Shutoff command failed (setting ondelay) =2E.. This program uses libusb to talk to the UPS over ugen - the system has 6.0 = on=20 it and libusb 0.1.12 (the latest). I am going to try instrumenting ugen next and see why it's returning EIO. I checked CVS but I don't believe any of the commits since 6.0 would have a= n=20 effect here. Does anyone have any suggestions? Thanks. =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 --nextPart1485517.AHaUuGEUD9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEkhT45ZPcIHs/zowRAolrAJ98+HRNtJbR+xNtbN9yugqC9MgtdwCfXeez 6jJBELcr/D0ojOF8FLVaax8= =n29x -----END PGP SIGNATURE----- --nextPart1485517.AHaUuGEUD9--