Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB



The firmware in the device specifies the maxPacketSize in the endpoint descriptor. If you can rebuild the firmware for your scanner, you can change it. However, be aware that for USB full speed devices the MaxPacketSize is limited to a maximum of 64 bytes. For Hi-speed devices, the MaxPacketSize must be 512 bytes.

You can send requests of any size, and the USB stack will break your request into multiple maxPacketSize requests. If reading from a Bulk IN pipe, you should always request a multiple of maxPacketSize so that you do not risk loosing data from your device.

Regards,

David Ferguson
USB Software Team
Apple Computer

At 11:28 PM -0800 1/8/05, nishino tetsuya wrote:
I am programming a USB communication module for the scanner device using IOUSBInterfaceInterface, etc. and I would like to change the maxPacketSize for a bulk pipe. Right now I am using a default value 64 byte. Can someone tell me how to change it?


_______________________________________________ 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

_______________________________________________ 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
References: 
 >USB (From: "nishino tetsuya" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.