Slightly OT: anybody familiar with USB?
Slightly OT: anybody familiar with USB?
- Subject: Slightly OT: anybody familiar with USB?
- From: Ondra Cada <email@hidden>
- Date: Wed, 21 Apr 2004 21:17:31 +0200
Hi,
I regret to say I am no USB guru myself; just using it to communicate
with the Gigaset via an undocumented (sigh) interface. The problem is,
the communication sometimes locks; restarting the application does not
help, but restarting the Gigaset does. The communication is pretty
plain; I just call
(*interface)->ReadPipeAsync(interface, 1, buffer, blockValue,
_readPipeAsyncCompletion, ref)
to begin the communication, and then again the same each time in the
_readPipeAsyncCompletion routine. Inside the routine I just issue a
device request (which returns some data from the device; the request
number I've hacked out from a Windoze Gigaset communication tool).
Generally this works all right; sometimes though it locks reporting an
error e000404f "Pipe has stalled, error needs to be cleared" in the
console log; in the syslog it adds
system.log:Apr 21 20:36:29 localhost kernel: USBF: 20314.599
AppleUSBOHCI[0x1d6e800]::CreateGeneralTransfer - trying to queue to a
stalled pipe
system.log:Apr 21 20:36:29 localhost kernel: USBF: 20314.599
AppleUSBOHCI[0x1d6e800]::DoIOTransfer - error 0xe000404f queueing
request
system.log:Apr 21 20:36:34 localhost kernel: USBF: 20319.788
AppleUSBOHCI[0x1d6e800]::MakeDevice error setting address.
err=0xe00002ed device=0x3442c00 - releasing device
Is that sufficient to see what did I do wrong? If not, the complete
sources are at
http://www.ocs.cz/apps/GigaCommTool.tgz
Would be grateful for an advice what and how to fix,
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.