On Sun, Oct 28, 2012 at 11:29 AM, therau2000 <therau2...@videotron.ca> wrote:
> Under Mac OS X you will have problem as well but a codeless kext may > help in order to use libusbx. In that case, the device will not function as > a USB mass storage device. So you have a problem there as well. > https://github.com/texane/stlink/tree/master/stlinkv1_macosx_driver > > I got my C prototype program working perfectly under Mac OS X by disabling > the default IOUSBMassStorageClass.kext driver, but it is not a solution > because there is no longer any access to the device's removable drive. > > Questions: > 1-Does installing this codeless kext disable the default > IOUSBMassStorageClass.kext driver (USB removable drive support) ? Yes it will disable the default driver. > 2-Is it not possible to detach and then re-attach the default driver like in > Linux? Not under Mac OS X for the USB Mass Storage driver. > Under Windows, again libusbx will not be good for you since you need to > switch driver. Even though it is possible to use libwdi to achieve the goal > the user experience will not be good since the driver switching may take > a long time (due to Windows restore or things like that). > https://github.com/pbatard/libwdi/wiki > > Windows libwdi would not be a solution. The only acceptable solution that I > can see (for now...) would be to temporarily "suspend" USBSTOR (maybe > something like make it believe computer is going into suspend mode) and > access the Device with libusbx for 1-2 seconds max, then "resume" USBSTOR. > An acceptable alternative would be to detach then re-attach USBSTOR, > something like in Unix. libwdi can do what you want (replace the default driver and then put back the existing driver later) but again the user experience is not great since the duration of "detaching" and "re-attaching" is unpredictable. -- Xiaofan ------------------------------------------------------------------------------ WINDOWS 8 is here. Millions of people. Your app in 30 days. Visit The Windows 8 Center at Sourceforge for all your go to resources. http://windows8center.sourceforge.net/ join-generation-app-and-make-money-coding-fast/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel