[usb module] Interpreting data from Snoopy

From: Pieter (this_at_isfake.net)
Date: 09/22/04

  • Next message: John Fusco: "remap_page_range with addresses above 4GB"
    Date: Tue, 21 Sep 2004 22:26:28 GMT
    
    

    Hey all!

    I've been trying to write an usb kernel module for Linux for my
    force-feedback joystick. The general stuff has been set up (e.g. the module
    gets probed when the joystick gets attached). I consider this as a workbench
    realizing I should adjust it later on to fit into usbhid.

    The problem is, I've never programmed usb before. Some one pointed out
    SnoopyPro for me (a tool which gathers packets just like a packet sniffer).
    However, I don't understand the package notations.

    For example, one packet reads:

    ---[cut]---
    11 out down n/a 4.704 CLASS_INTERFACE 00 00 00
    URB Header (length: 80)
    SequenceNumber: 11
    Function: 001b (CLASS_INTERFACE)
    PipeHandle: 00000000

    SetupPacket:
    0000: 22 09 00 03 00 00 00 00
    bmRequestType: 22
      DIR: Host-To-Device
      TYPE: Class
      RECIPIENT: Endpoint
    bRequest: 09

    TransferBuffer: 0x00000003 (3) length
    0000: 00 00 00
    ---[cut]---

    How do I convert this to an URB I can send out within my linux module?

    Thanks in advance,
    Pieter


  • Next message: John Fusco: "remap_page_range with addresses above 4GB"