Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2006 11:48:31 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org
Subject:   USB MGE UPS problem
Message-ID:  <200606161148.32813.doconnor@gsoft.com.au>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606161148.32813.doconnor>