Mailing Lists: Apple Mailing Lists

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

USB Freeze when unplugging a device



Hi all,

I'm just trying our application out on Tiger and have noticed a disturbing behavior. I'm wondering if anyone can give me a hint.

Our application interfaces with some hardware, which it communicates with via BSD serial commands. The device uses an FDTI USB chip and FTDI supplies a kernel driver that exposes the device as a serial port.

We do hot-plug detection for this device. When we notice the device has arrived, we use typical BSD type commands to open up the serial port and communicate with the device. When we get a notification that the device is gone, we clean things up and notify the user.

The problem appears to be that once the serial port is opened, unplugging the device freezes the USB subsystem. (i.e. if I don't open the serial port, unplugging doesn't hang the USB). The machine still runs (i.e. eventually the screensaver will start), but the mouse and keyboard and other USB devices are dead. I never get my interest notification callback telling me about the unplug. This is on a dual processor 2.0 GHz G5 desktop system.

I'm wondering where I should point the finger here. Is this a problem with Tiger's USB system, or the FTDI driver, or with my code somehow?

Thanks,

Brent Marykuca
Art & Logic


_______________________________________________ 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


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.