User-agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513)
Hi all
I am developing device driver for my hardware. I have to poll the bulk-in
endpoint for reading the data from the device. As the data comes to the
bulk-in endpoint I have to read it. According to the device specification,
for continuos bulk-in I have to write to control pipe once and then start
reading the data.
After the device is initialized, I start polling the bulk-in endpoint. I
first issue a command to control pipe(64 bytes),then start reading from the
bulk-in endpoint as the data comes. After reading 64 bytes I again issue
a command to control pipe. This is what I am doing inside ReadPolling
function. After it enters the completion routine I store the read data and
call the ReadPolling function from the completion routine.
My problem is, sometimes system hangs after reading 64 bytes. Sometimes it
hangs as soon as the first byte comes. Sometimes after reading some 20 or 30
bytes. If I dump log message to a file, Every time it hangs after the
execution of the USBBulkRead function. It does not go to the completion
routine.
I struggled a lot but could not figure it out what is happening. Can anybody
please give some suggestions regarding this.
TIA
Prashanth
--------------------------------------------------------------
Robosoft Technologies, Mangalore, India
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.