data analysis

来源:互联网 发布:淘宝3c认证怎么申请 编辑:程序博客网 时间:2024/05/02 00:33

Bus Hound 6.01 capture on Windows XP Service Pack 3 (x86). Complements of www.perisoft.net

  Device - Device ID (followed by the endpoint for USB devices)
            (21) Microvision MV-VD Digital Camera
  Address - FireWire async address or channel number
  Length - Total transfer length
  Phase  - Phase Type
            IN    Data in transfer          
            IRP   I/O request packet        
            OUT   Data out transfer         
            STAK  IRP stack location        
            URB   USB request block         
  Data   - Hex dump of the data transferred
  Descr  - Description of the phase
  Delta  - Elapsed time from the previous phase to the current phase
  Cmd... - Position in the captured data
  Date   - Date the phase occurred in year-month-day form
  Time   - Time the phase occurred in hour:minute:second.millisec form


Device  Address              Length    Phase  Data  Description       Delta  Cmd.Phase.Ofs(rep)  Date        Time       
------  -------------------  --------  -----  ----  ----------------  -----  ------------------  ----------  ------------
  21.1                              3  OUT    15    .                 6.4mn         1.1.0        2010-12-03  16:10:01.016 
                                              0f    .                               1.1.1                                 
                                              02    .                               1.1.2                                 
  21.1                                 URB    48    BULK/INT XFER       7us         1.2.0        2010-12-03  16:10:01.016 
                                              00                                    1.2.1                                 
                                              09                                    1.2.2                                 
                                              00                                    1.2.3                                 
                                              00                                    1.2.4                                 
                                              00                                    1.2.5                                 
                                              00                                    1.2.6                                 
                                              00                                    1.2.7                                 
  21                                   IRP    06                        3us         1.3.0        2010-12-03  16:10:01.016 
                                              00                                    1.3.1                                 
                                              90                                    1.3.2                                 
                                              01                                    1.3.3                                 
                                              00                                    1.3.4                                 
                                              00                                    1.3.5                                 
                                              00                                    1.3.6                                 
                                              00                                    1.3.7                                 
  21                                   STAK   0f    INTERNAL IOCTL      3us         1.4.0        2010-12-03  16:10:01.016 
                                              00                                    1.4.1                                 
                                              00                                    1.4.2                                 
                                              00                                    1.4.3                                 
                                              f8                                    1.4.4                                 
                                              43                                    1.4.5                                 
                                              4e                                    1.4.6                                 
                                              86                                    1.4.7                                 
  21.1                              4  IN     01    .                 175us         2.1.0        2010-12-03  16:10:01.016 
                                              00    .                               2.1.1                                 
                                              00    .                               2.1.2                                 
                                              00    .                               2.1.3                                 
  21.1                                 URB    48    BULK/INT XFER       3us         2.2.0        2010-12-03  16:10:01.016 
                                              00                                    2.2.1                                 
                                              09                                    2.2.2                                 
                                              00                                    2.2.3                                 
                                              00                                    2.2.4                                 
                                              00                                    2.2.5                                 
                                              00                                    2.2.6                                 
                                              00                                    2.2.7                                 
  21                                   IRP    06                        3us         2.3.0        2010-12-03  16:10:01.016 
                                              00                                    2.3.1                                 
                                              90                                    2.3.2                                 
                                              01                                    2.3.3                                 
                                              00                                    2.3.4                                 
                                              00                                    2.3.5                                 
                                              00                                    2.3.6                                 
                                              00                                    2.3.7                                 
  21                                   STAK   0f    INTERNAL IOCTL      2us         2.4.0        2010-12-03  16:10:01.016 
                                              00                                    2.4.1                                 
                                              00                                    2.4.2                                 
                                              00                                    2.4.3                                 
                                              f8                                    2.4.4                                 
                                              43                                    2.4.5                                 
                                              4e                                    2.4.6                                 
                                              86                                    2.4.7                                 
  21.1                              1  OUT    11    .                 240us         3.1.0        2010-12-03  16:10:01.016 
  21.1                                 URB    48    BULK/INT XFER       4us         3.2.0        2010-12-03  16:10:01.016 
                                              00                                    3.2.1                                 
                                              09                                    3.2.2                                 
                                              00                                    3.2.3                                 
                                              00                                    3.2.4                                 
                                              00                                    3.2.5                                 
                                              00                                    3.2.6                                 
                                              00                                    3.2.7                                 
  21                                   IRP    06                        3us         3.3.0        2010-12-03  16:10:01.016 
                                              00                                    3.3.1                                 
                                              90                                    3.3.2                                 
                                              01                                    3.3.3                                 
                                              00                                    3.3.4                                 
                                              00                                    3.3.5                                 
                                              00                                    3.3.6                                 
                                              00                                    3.3.7                                 
  21                                   STAK   0f    INTERNAL IOCTL      2us         3.4.0        2010-12-03  16:10:01.016 
                                              00                                    3.4.1                                 
                                              00                                    3.4.2                                 
                                              00                                    3.4.3                                 
                                              f8                                    3.4.4                                 
                                              43                                    3.4.5                                 
                                              4e                                    3.4.6                                 
                                              86                                    3.4.7                                 
  21.2                         262144  IN     09    .                 7.6ms         4.1.0        2010-12-03  16:10:01.026 
                                              0a    .                               4.1.1                                 
                                              06    .                               4.1.2                                 
                                              06    .                               4.1.3                                 
                                              05    .                               4.1.4                                 
                                              08    .                               4.1.5                                 
                                              06    .                               4.1.6                                 
                                              0b    .                               4.1.7                             

这是在windows下面 用bus hound采集到的usb发送数据



 21.1                              3  OUT    15    .                 6.4mn         1.1.0        2010-12-03  16:10:01.016  
                                              0f    .                               1.1.1                                  
                                              02    .                               1.1.2  

 

 

出送给usb的数据,长度是3个字节,  分别是 15, 0f ,02

 

 

 21.1                                 URB    48    BULK/INT XFER       7us         1.2.0        2010-12-03  16:10:01.016  
                                              00                                    1.2.1                                  
                                              09                                    1.2.2                                  
                                              00                                    1.2.3                                  
                                              00                                    1.2.4                                  
                                              00                                    1.2.5                                  
                                              00                                    1.2.6                                  
                                              00                                    1.2.7    

 

 

 标准传输控制中的块请求

48                            00                   09 00             0000         0000 

bmRequestType(1)+bRequest(1)+wvalue(2)+wIndex(2)+wLength(2)

 

 

bmRequestType

48 h = 00110000 b

方向1 +  请求类型2 +接受者类型

001          100 00

主 机到设备             类请求命令 ?   

 

 

bRequest  00                   

 1.GetStatus (00H)  获取状态
       A:[To Device]
获取设备的状态:
          
0:自供电(0表示总线供电;1表示自供电).
          
1:远程唤醒(0表示不支持远程唤醒;1表示远程唤醒).
          
2~15:保留.
          
一般选择总线供电,不支持远程唤醒,所以返回数据就是0x0000.