From owner-freebsd-usb@freebsd.org Tue Jan 24 17:12:20 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8076DCBF77C for ; Tue, 24 Jan 2017 17:12:20 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B9C4D356 for ; Tue, 24 Jan 2017 17:12:19 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id v0OHCIGV012021 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 24 Jan 2017 12:12:18 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.15.2/8.14.9) with ESMTP id v0OHCG0L028514; Tue, 24 Jan 2017 12:12:16 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: USB device not working on FreeBSD To: Hans Petter Selasky , freebsd-usb@freebsd.org References: <7ebf8e83-4dad-5035-83a6-f11c59d7fcbe@selasky.org> From: Mike Tancsa Organization: Sentex Communications Message-ID: <3a733012-3bca-e262-0e25-f9f3607af80d@sentex.net> Date: Tue, 24 Jan 2017 12:12:15 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <7ebf8e83-4dad-5035-83a6-f11c59d7fcbe@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 17:12:20 -0000 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: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x051d idProduct = 0x0002 bcdDevice = 0x0090 iManufacturer = 0x0001 iProduct = 0x0002 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@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/