Thank you so much for your quick response
>Overrun means that the device sent more data than you were
>expecting. The HID manager does this for you when using
>the HID driver. I would try reading at least maxPacketSize bytes.
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 bytes 8 once
I now declared
char gBuffer[8];
and changed the code to take out this -1 (it was in the code
I looked at)
numBytesRead = sizeof(gBuffer);
err = (*intf)->ReadPipe(intf, inPipeRef, gBuffer, &numBytesRead);
for (i = 0; i < numBytesRead; i++)
{
gBuffer[i] = ~gBuffer[i];
printf("Read %x (%ld bytes) from bulk endpoint\n", gBuffer[i], numBytesRead);
}
And I don't get the error message any more. Thank you!
-----------------------------------------------------------------------
Is this line necessary?
gBuffer[i] = ~gBuffer[i];
with it I get
Read fffffff8 (8 bytes) from bulk endpoint
Read ffffffad (8 bytes) from bulk endpoint
Read ffffffbe (8 bytes) from bulk endpoint
Read ffffffa8 (8 bytes) from bulk endpoint
Read ffffffc1 (8 bytes) from bulk endpoint
Read ffffffcf (8 bytes) from bulk endpoint
Read ffffffcf (8 bytes) from bulk endpoint
Read ffffffcf (8 bytes) from bulk endpoint
without that line I get something which makes more sense to
me.
Read 7 (8 bytes) from bulk endpoint
Read 5c (8 bytes) from bulk endpoint
Read 52 (8 bytes) from bulk endpoint
Read 41 (8 bytes) from bulk endpoint
Read 57 (8 bytes) from bulk endpoint
Read 3e (8 bytes) from bulk endpoint
Read a (8 bytes) from bulk endpoint
Read d (8 bytes) from bulk endpoint
It seems to be changing each time I run the code, Thank you
so much!
anne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden