X10 Wireless Technology Inc USB Receiver

Lars Eggert larse at ISI.EDU
Sun Sep 21 19:25:14 PDT 2003


Bernd,

Bernd Walter wrote:
>>>What does USB_DEBUG with hw.usb.debug=2 and hw.usb.ugen.debug=2 say?

it says this:

usbd_setup_pipe: dev=0xc3f9d980 iface=0xc3efbaa0 ep=0xc3f192c8 
pipe=0xdb936974
ugenwrite: transfer 5 bytes
usbd_intr_transfer: start transfer 5 bytes
usbd_intr_transfer: transferred 0
usbd_intr_transfer: error=13

(This is with ehci disabled.)

> Mmm - looks you are right, but your init data seems to be different.
> 0x8001 vs 0x8003 and 0x8007.

I think the only difference is that I prepended the 0x80 directly, which 
the Linux driver fudges in front in send_packet.

> Interesting is the calculation of transfer_buffer_length in
> send_packet(), which would result in 4 for init1 and 8 for init2.
> I interpret this that the last byte from init1 doesn't get written
> and your packets don't fit into that sheme.

I think they do, see the Windows dump.

> The source looks very confusing to me, but maybe that because of my
> current localtime()...

No, it's not :-) After I reading that driver, I know why I like the BSD 
sources.

> The Windows log could help as it's at least readable and familar.

It's attached, in whatever format snoopy 
(http://sourceforge.net/projects/usbsnoop/) saves it. It shows two 
writes with this data:

	TransferBuffer: 0x00000005 (5) length
	0000: 80 01 00 20 14

	TransferBuffer: 0x00000008 (8) length
	0000: 80 01 00 20 14 20 20 20

Lars
-- 
Lars Eggert <larse at isi.edu>           USC Information Sciences Institute
-------------- next part --------------
A non-text attachment was scrubbed...
Name: USBLog1.usblog
Type: application/octet-stream
Size: 2673 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030921/78a7b4f0/USBLog1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3529 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030921/78a7b4f0/smime.bin


More information about the freebsd-current mailing list