LibUsbK Isochronous Write C# example

Stephen B <[email protected]>
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <CAKPi28ovKeCm3aRoZ583N-N=0whcB3WUoUa9taZHCmFnOtvTew@mail.gmail.com>
Hello,

I am trying to write isochronous data to my USB device. I tried
the xfer-iso c example but had no luck to compile it, and preferably I want
to use C# anyway. So I looked at the C# examples and found
Read.Isochronous. This compiles and works, but unfortunately there is no
Write example.

I tried to create it myself using the c example and the Read.Isochronous
example, but with no luck yet. When writing, the following line always
returns error 50 (the request is not supported):
usb.IsoWritePipe(pipeInfo.PipeId, dataBuffer, dataBuffer.Length,
ovlkHandle, Iso.Handle);

I also can't find any iso out packets with USBPcap.

Does anyone have any idea what's causing this? I have attached my code
along with a descriptor report of my device. There are 5 unnecessary
endpoints from my base firmware code, but I decided to keep them in for now
to prevent causing more bugs, as my device has worked and transferred iso
data with libusb in the past.

Thanks in advance for any help!

Kind regards,
Stephen

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

_______________________________________________
Libusb-win32-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
device_descriptors.txt (text/plain, 3 KB)
-Device:
  bLength             :18
  bDescriptorType     :0x01
  bcdUSB              :0x0200
  bDeviceClass        :0x00 (Defined at Interface level)
  bDeviceSubClass     :0x00
  bDeviceProtocol     :0x00
  bMaxPacketSize0     :8
  idVendor            :0x03EB (Atmel Corp.)
  idProduct           :0x2423
  bcdDevice           :0x0100
  iManufacturer       :1 (LaserFX)
  iProduct            :2 (LaserFX USB Interface)
  iSerialNumber       :3 (9CEF79E83953333838362020FF1816)
  bNumConfigurations  :1
!End Device
-Configuration:
  bLength             :9
  bDescriptorType     :0x02
  wTotalLength        :69
  bNumInterfaces      :1
  bConfigurationValue :0x01
  iConfiguration      :0
  bmAttributes        :0xC0
  MaxPower            :50 (100ma)
 -Interface:
    bLength             :9
    bDescriptorType     :0x04
    bInterfaceNumber    :0x00
    bAlternateSetting   :0x00
    bNumEndpoints       :0
    bInterfaceClass     :0xFF (Vendor Specific Class)
    bInterfaceSubClass  :0xFF (Vendor Specific Subclass)
    bInterfaceProtocol  :0xFF (Vendor Specific Protocol)
    iInterface          :0
 !End Interface
 -Interface:
    bLength             :9
    bDescriptorType     :0x04
    bInterfaceNumber    :0x00
    bAlternateSetting   :0x01
    bNumEndpoints       :6
    bInterfaceClass     :0xFF (Vendor Specific Class)
    bInterfaceSubClass  :0xFF (Vendor Specific Subclass)
    bInterfaceProtocol  :0xFF (Vendor Specific Protocol)
    iInterface          :0
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x81
      bmAttributes        :0x03 (Interrupt)
      wMaxPacketSize      :64
      bInterval           :0x01
   !End Endpoint
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x02
      bmAttributes        :0x03 (Interrupt)
      wMaxPacketSize      :64
      bInterval           :0x01
   !End Endpoint
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x83
      bmAttributes        :0x02 (Bulk)
      wMaxPacketSize      :512
      bInterval           :0x00
   !End Endpoint
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x04
      bmAttributes        :0x02 (Bulk)
      wMaxPacketSize      :512
      bInterval           :0x00
   !End Endpoint
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x85
      bmAttributes        :0x01 (Isochronous, No Synchonization, Data Endpoint)
      wMaxPacketSize      :128
      bInterval           :0x01
   !End Endpoint
   -Endpoint:
      bLength             :7
      bDescriptorType     :0x05
      bEndpointAddress    :0x06
      bmAttributes        :0x01 (Isochronous, No Synchonization, Data Endpoint)
      wMaxPacketSize      :128
      bInterval           :0x01
   !End Endpoint
 !End Interface
!End Configuration
Write.Isochronous.rar (application/rar, 7.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.