Alan Stern escribió:
> On Mon, 16 Jul 2007, Alex Villací­s Lasso wrote:
>
>   
>> You can download the raw USB log from 
>> http://www.palosanto.com/~a_villacis/ks959-2.usblog.bz2 . The XML format 
>> is no good because it lacks details about the setup packet.
>>     
>
> I see your problem.  You think the contents of the Setup packet are 
> displayed in the DOWN entry for the URB; that's where the "00 01 00 02 
> 00 00 00 00" comes from.
>
> But you're wrong.  The actual Setup packet contents are in the URB's UP
> entry.  I don't know where those other numbers come from; they are
> garbage.  For example, look at URB 5.  The DOWN entry shows wLength to
> be 0 together with a transfer buffer of length 8.  However the UP entry
> shows wLength correctly equal to 8.  Or compare the directions shown in
> the DOWN and UP entries for URB 6.
>
> So the contents you want really are: "a1 01 00 02 00 00 00 08".  It's a
> class-specific request directed to interface 0.  wLength is 0x800 =
> 4096; a little on the large side considering that the device doesn't
> send any data back.
>
> Alan Stern
>
>   
Oh, thanks! That was the problem after all. I was reading the logs 
incorrectly.

With the corrected setup packets, I was able to start discovery with 
irattach (as seen with wireshark). The name of my cellphone shows up 
correctly, so far. However, once I try to obexftp -i -l (list directory 
over IrDA transport with OBEX), my machine crashes hard... I think it is 
because I violated the rule that states that usb_control_msg() "cannot 
be called from within interrupt context or with a spinlock held" ... and 
I use it to implement speed change. Nothing I cannot fix overnight at home.

Thanks again!

-- 
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to