USB device not working on FreeBSD
Mike Tancsa
mike at sentex.net
Tue Jan 24 17:12:20 UTC 2017
On 1/24/2017 12:03 PM, Hans Petter Selasky wrote:
> On 01/24/17 16:14, Mike Tancsa wrote:
>> Perhaps some sort of USB quirk needs to be added ? Any ideas on how to
>> get things working ? It fails on RELENG8, RELENG_10, and RELENG_11 in
>> the same way. usbconfig dump_device_desc fails as its not able to get
>> all the info.
>
> Hi,
>
> Try setting the UQ_NO_STRINGS quirk for this device and also verify that
> the idVendor and idProduct is present in the apcaccess utility. Else it
> will not attach!
Thanks! The quirk doesnt seem to make a difference to the app, but
dump_device_desc works now
# usbconfig -d ugen0.4 add_quirk UQ_NO_STRINGS
# usbconfig -d 0.4 dump_device_desc
ugen0.4: <American Power Conversion Back-UPS NS 650M1 FW929.a5 .D USB
FWa5> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x051d
idProduct = 0x0002
bcdDevice = 0x0090
iManufacturer = 0x0001 <American Power Conversion>
iProduct = 0x0002 <Back-UPS NS 650M1 FW:929.a5 .D USB FW:a5 >
iSerialNumber = 0x0003 <4B1630P12329 >
bNumConfigurations = 0x0001
The daemon does attach to it, and it sort of reads some of the info (as
before adding the quirk)
# apcaccess
APC : 001,033,0741
DATE : 2017-01-24 12:09:00 -0500
HOSTNAME : offsite2.sentex.ca
VERSION : 3.14.14 (31 May 2016) freebsd
UPSNAME : offsite2.sentex.ca
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2017-01-24 12:08:53 -0500
MODEL :
STATUS :
LINEV : 0.0 Volts
LOADPCT : 0.0 Percent
BCHARGE : 100.0 Percent
TIMELEFT : 447.7 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
SENSE : Unknown
LOTRANS : -1.0 Volts
HITRANS : -1.0 Volts
ALARMDEL : Always
BATTV : 0.0 Volts
NUMXFERS : 0
TONBATT : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x05000000
SERIALNO :
BATTDATE :
NOMINV : 0 Volts
NOMBATTV : 0.0 Volts
END APC : 2017-01-24 12:09:47 -0500
--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada http://www.tancsa.com/
More information about the freebsd-usb
mailing list