CATC USB Chief Bus & Protocol Analyzer.
With this equipment, i catch the 0 length packet when the host is ubuntu.


2009/8/29 Tejas <tejas.path...@gmail.com>:
>
> Not sure. What usb analyzer are you using ?
>
> On Aug 27, 11:37 pm, Kyo Yin <kyo....@gmail.com> wrote:
>> "old framework of adb in target" ===> means i don`t use the composite
>> driver in target if the host is ubuntu.you know, before composite
>> gadget driver, the adb is a single gadget driver(kernel 2.6.25).
>> kernel 2.6.29 add a composite gadget driver, mass storage and adb are
>> the functions of this composite gadget driver.
>>
>> " Are you saying that the usb transfer seen when using windows is same
>> as linux, except the 0 length packet ?"===> yse, in ubuntu, host will
>> send 0 length packet after a packet which size is 4096 or the multiple
>> of 64 and our usb protocol analyzer can catch this 0 length packet. In
>> windows, our analyzer cannot catch this 0 length packet. But i have
>> checked the usb_windows.c, it will send a 0 length packet.So i guess
>> the usb driver in windows block this 0 length packet?
>>
>> 2009/8/28 Tejas <tejas.path...@gmail.com>
>>
>>
>>
>>
>>
>> > I am assuming you meant 4096 bytes.. What do you mean by.. "BTW, For
>> > linux host, i use old framework of adb in target" ? Are you saying
>> > that the usb transfer seen when using windows is same as linux, except
>> > the 0 length packet ?
>>
>> > On Aug 27, 12:21 am, Kyo Yin <kyo....@gmail.com> wrote:
>> > > thank you for help.i have built the adb.exe
>>
>> > > and i have a question:
>> > > In my opinion, adb will send a 0 length packet after a packet if thie 
>> > > packet
>> > > length is multiple of the max length of endpoint.
>> > > For example, our endpoint is 64 bytes. So after every 4096 packets, 
>> > > adb.exe
>> > > should send a 0 length packet.
>>
>> > > I found the adb.exe has already try to send a 0 length packet.but
>> > > 1.in linux host, our usb analyzer can catch the 0 length packet.
>> > > 2.in windows host, our usb analyzer can not catch this 0 length packet.
>>
>> > > Did the widows driver block this 0 length packet?
>>
>> > > BTW, For linux host, i use old framework of adb in target, The composite
>> > > driver can not run in ubuntu 8.04.
>> > > For windows host, i use composite driver which has mass storage and adb 
>> > > in
>> > > target.
>>
>> > > 2009/8/19 Roman ( T-Mobile USA) <roman.baumgaert...@t-mobile.com>
>>
>> > > > For being able to compile an exe file on Ubuntu you would have to
>> > > > cross compile on Ubuntu which means you have to have a Windows cross
>> > > > compiler on it. Do you?
>>
>> > > > If not then install Cygwin on your windows environment and try it
>> > > > again. Make sure that you read the related topics about Android/Cygwin
>> > > > compilation to be aware of any possible provlems.
>>
>> > > > --
>> > > > Roman Baumgaertner
>> > > > Sr. SW Engineer-OSDC
>> > > > ·T· · ·Mobile· stick together
>> > > > The views, opinions and statements in this email are those of the
>> > > > author solely in their individual capacity, and do not necessarily
>> > > > represent those of T-Mobile USA, Inc.
>>
>> > > > On Aug 18, 9:38 pm, Kyo Yin <kyo....@gmail.com> wrote:
>> > > > > hi roman    1.How do you try to compile?
>> > > > >     i just use "make HOST_OS=windows" in ubuntu.
>> > > > >     2.Are you doing this on Cygwin?
>> > > > >     no.i use ubuntu.
>>
>> > > > >     do you mean i should use cygwin to build adb.exe for windows?
>>
>> > > > > kyo
>> > > > > 3273
>>
>> > > > > 2009/8/19 Roman ( T-Mobile USA) <roman.baumgaert...@t-mobile.com>
>>
>> > > > > > How do you try to compile? Are you doing this on Cygwin?
>>
>> > > > > > --
>> > > > > > Roman Baumgaertner
>> > > > > > Sr. SW Engineer-OSDC
>> > > > > > ·T· · ·Mobile· stick together
>> > > > > > The views, opinions and statements in this email are those of the
>> > > > > > author solely in their individual capacity, and do not necessarily
>> > > > > > represent those of T-Mobile USA, Inc.
>>
>> > > > > > On Aug 18, 5:41 am, Kyo <kyo....@gmail.com> wrote:
>> > > > > > > hi,everyone.
>> > > > > > >     i want to modify the usb_windows.c in /system/core/adb and
>> > > > > > > recompile a new adb.exe to test our platform.
>> > > > > > >     but, when i use "make HOST_OS=windows", it failed.
>> > > > > > >     i use ubuntu 8.04 and i can build with "make HOST_OS=linux".
>> > > > > > >     does anyone know how to build my adb.exe?
>>
>> > > > > > >     thanks
>>
>> > > > > > > kyo
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to