Re: Iyonix USB: Bulk IN endpoints




Ian Hamilton wrote:
In article <1157097417.992035.165330@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Dave
Higton <davehigton@xxxxxxxxxxxxx> wrote:
Ian Hamilton wrote:

[Snip] Bulk in endpoint

On the Iyonix stack, the only way I have found to do it is with
OS_GBPB 4, having opened the pipe with short timeouts. However,
I'm not sure this is working without confusing the device.

You can check the buffer flags (Buffer_GetInfo) to determine if any
data is present. I test bit 0 (Dormant) and bit 8.

If both bits are set, do the OS_GBPB transfer, flush the buffer and
reset the flags word with Buffer_ModifyFlags.

The trouble is that there never are any bytes waiting until the OS_GBPB
is performed. Bulk and interrupt endpoints work differently. With
interrupt mode, you can sit there waiting for them to arrive; the stack
keeps requesting them. This doesn't happen with bulk mode endpoints.
The host app has to request them.

That's not the case in the program I'm working on (Bulk). Have you done
the WakeUp call (SYS "DeviceFS_CallDevice",3,0,devicefs_stream%!28)? I
did have a problem recently where code that worked under USB1 stopped
working under USB2 (flags weren't triggered), this was resolved by
increasing the buffer size in the open string.

No, I wasn't aware of its existence. Thanks. I'll try that this
evening.

Dave

.



Relevant Pages

  • Re: AVStream Device - Isochronous or Bulk
    ... But in the event that my device supports both bulk ... is there a way to switch between the different endpoints? ... "Tim Roberts" wrote: ... >>I'm trying to display video over a usb device. ...
    (microsoft.public.development.device.drivers)
  • Re: USB Function Driver in 5.0
    ... I believe you has have Bulk In and Bulk Out in order to make USB function ... The endpoints details provided in USB serial ... > client driver has ...
    (microsoft.public.windowsce.embedded)
  • Re: Iyonix USB: Bulk IN endpoints
    ... You can check the buffer flags to determine if any ... Bulk and interrupt endpoints work differently. ...
    (comp.sys.acorn.programmer)
  • Re: Streaming on USB 2.0 bulk camera device
    ... lower driver for bulk transfer so as not to intermit data stream from camera ... possbile to send one Irp per bulk end point. ... bulk endpoints and alternately transfer data on two bulk OUT endpoints ... change if you want to write your own Windows 1394 driver. ...
    (microsoft.public.development.device.drivers)
  • Re: XU1541 and more USB stuff
    ... USB link should be able to handle this datarate for bulk ... But I think the issue with USB is latency. ... that is only 40 bytes of data to buffer. ... interrupt transfers are maybe the best option. ...
    (comp.sys.cbm)