Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2017 15:05:34 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        Hans Petter Selasky <hps@selasky.org>, freebsd-usb@freebsd.org
Subject:   Re: USB device not working on FreeBSD
Message-ID:  <4dbede56-cb85-a8cc-8fc0-5e7ae8742c43@sentex.net>
In-Reply-To: <f949a53a-7a31-2b08-56b0-d449a1037dec@selasky.org>
References:  <b44ed306-057f-8d28-d01d-bed59b986b3a@sentex.net> <7ebf8e83-4dad-5035-83a6-f11c59d7fcbe@selasky.org> <3a733012-3bca-e262-0e25-f9f3607af80d@sentex.net> <8abcf130-bf80-a922-a9d0-1d1e8b5d0a74@selasky.org> <3540190e-c51a-d706-14c4-a0093d7e6571@sentex.net> <8045756a-be33-4ad3-658c-10545a251772@selasky.org> <64baf2ce-b9f7-7efa-9172-0c88c0cee02c@sentex.net> <f949a53a-7a31-2b08-56b0-d449a1037dec@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/8/2017 2:20 PM, Hans Petter Selasky wrote:
> 
> Hi,
> 
> After your device receives the following control endpoint request it
> becomes unrecoverable:
> 
>> 13:05:50.860195 usbus0.4
>> SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0
>>  frame[0] WRITE 8 bytes
>>  0000  A1 01 52 03 00 00 03 00  -- -- -- -- -- -- -- -- 
>> |..R.....        |
>          ^^ USB read interface class (A1)
>             ^^ GET_REPORT (01)
>                   ^^ feature (03)
>                            ^^ length (3 bytes)
>>  frame[1] READ 3 bytes
>> 13:05:50.860938 usbus0.4
>> DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=IOERROR
>>  frame[0] WRITE 8 bytes
>>  frame[1] READ 0 bytes
> 
> Can you disable devd, and launch the apcupsd manually?
> 
> Can you figure out which application is doing this request?
> 
> If you don't start apcupsd, is this request then issued? If you stop
> other daemons like hald, webcamd ... ? Is the request still there when
> you plug the device?

I disabled devd, but I dont have anything else like hald or webcamd
running. I also disconnected all usb devices. I powered off the unit,
disconnected, then reconnected it to the box and started usbdump. I
didnt see the above sequence. I started apcupsd and it seems to be the
one sending that sequence to it.


> 
> Are you using the latest version of apcupsd ?

Yes.

> 
> BTW: The manufacturer should be let aware of this issue. It's like a
> zero-day to stop the device from working properly.

I can try.  I dont have any contacts there, but I will bcc' one of the
developers of apcupsd to see what he thinks.  I attached the output of
truss and the usbdump to see if that sheds any light on the issue and
why FreeBSD is crashing the device and not Linux.

	---Mike

-- 
-------------------
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dbede56-cb85-a8cc-8fc0-5e7ae8742c43>