libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

View: New views
7 Messages — Rating Filter:   Alert me  

libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

by Kustaa Nyholm-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

...but always blocks until data is available.

Or so it seem. Now that I've got my weather station code working
in Linux I noticed that my timeout value was too short and I
keep getting unnecessary many timeouts I noticed that this
never happens in Mac OS X, so I think the timeouts don't
work on OS X.

No matter as I guess no further releases are likely and
I don't need them either way anyhow, but thought I'd mention it.

My Mac libusb is from macports, don't recall the version number
and don't know how to check it.

br Kusti


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

by Ludovic Rousseau :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/19 Kustaa Nyholm <Kustaa.Nyholm@...>:
> ...but always blocks until data is available.
>
> Or so it seem. Now that I've got my weather station code working
> in Linux I noticed that my timeout value was too short and I
> keep getting unnecessary many timeouts I noticed that this
> never happens in Mac OS X, so I think the timeouts don't
> work on OS X.

I confirm I can reproduce that on Mac OS X 10.6.1 with libusb 0.1.12.
The timeout never happens.

I have not yet checked with libusb 1.x + libusb-compat.

> No matter as I guess no further releases are likely and
> I don't need them either way anyhow, but thought I'd mention it.

I also think this "problem" will never be corrected in libusb 0.1.x.
Time to move to libusb 1.x?

Bye

--
 Dr. Ludovic Rousseau

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

by Kustaa Nyholm-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> work on OS X.
>
> I confirm I can reproduce that on Mac OS X 10.6.1 with libusb 0.1.12.
> The timeout never happens.
>
Thanks for the confirmation.

> I have not yet checked with libusb 1.x + libusb-compat.
I would be interested in learning that if you have the time/inclination.
>
>> No matter as I guess no further releases are likely and
>> I don't need them either way anyhow, but thought I'd mention it.
>
> I also think this "problem" will never be corrected in libusb 0.1.x.
> Time to move to libusb 1.x?
As soon as it supports Windows, while I'm on Mac and Linux would
make most sense for my application I'm afraid 95% of my potential
users will be on Windows!

cheers Kusti


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

by Peter Stuge-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kustaa Nyholm wrote:
> > I have not yet checked with libusb 1.x + libusb-compat.
>
> I would be interested in learning that if you have the
> time/inclination.

You could also try it out yourself. The idea is that
libusb-1.0+libusb-compat-0.1 is compatible with libusb-0.1.


> > Time to move to libusb 1.x?
>
> As soon as it supports Windows, while I'm on Mac and Linux would
> make most sense for my application I'm afraid 95% of my potential
> users will be on Windows!

Does anyone know why the libusb-win32 developers aren't active here?


//Peter

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb (0.1) timeout in usb_interrupt_readon Mac OS X 10.5.8 does not work

by Michael Plante :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter wrote:

>> > > Time to move to libusb 1.x?
>> >
>> > As soon as it supports Windows, while I'm on Mac and Linux would
>> > make most sense for my application I'm afraid 95% of my potential
>> > users will be on Windows!
>>
>> Does anyone know why the libusb-win32 developers aren't active here?

Just a hunch, but given the commit rate over at libusb-win32, I don't see
any movement this direction from the win32 project's side.  The only person
who knows AND is willing to post is Xiaofan.

Any idea what's going on with Josh Perry?  I never did see a link to his
repo.  Even if it doesn't work yet, it sounds like his modifications took
some work and would be interesting to look at...


Michael


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Re: libusb (0.1) timeout in usb_interrupt_readon Mac OS X 10.5.8 does not work

by Xiaofan Chen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 23, 2009 at 11:06 PM, Michael Plante
<michael.plante@...> wrote:
> Peter wrote:
>
>>> Does anyone know why the libusb-win32 developers aren't active here?
>
> Just a hunch, but given the commit rate over at libusb-win32, I don't see
> any movement this direction from the win32 project's side.  The only person
> who knows AND is willing to post is Xiaofan.

I am willing to post in the libusb-win32 because I used it before
and it works fine for the applications. But I am not a developer
and I do not know too much about the internals of libusb-win32
anyway.

If Tim is there, he can probably answer most of the questions
as he is a recognized expert in Windows driver development.
I think he has already looked into the codes and seen some
problems.
Example:
http://www.nabble.com/Part-of-the-reason-why-libusb-win32-filter-driver-does-not-work-under-Vista-32bit-td23149382.html

I agree with you that libusb-win32 does not move basically
over the past two years. Maybe Stephan Meyer is really
busy with his real work. Even if the libusb-win32 project
moves forward with its 1.0 branch, it is not API compatible
with libusb 1.0. That is because the libusb-win32 1.0 branch
started earlier than libusb 1.0.
http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb1/

> Any idea what's going on with Josh Perry?  I never did see a link to his
> repo.  Even if it doesn't work yet, it sounds like his modifications took
> some work and would be interesting to look at...
>


--
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel

Parent Message unknown Re: libusb (0.1) timeout in usb_interrupt_read on Mac OS X 10.5.8 does not work

by Kyle McKay-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 23, 2009, at 00:22:50 PDT, Ludovic Rousseau <ludovic.rousseau@...> wrote:
2009/10/19 Kustaa Nyholm <Kustaa.Nyholm@...>:
...but always blocks until data is available.

Or so it seem. Now that I've got my weather station code working
in Linux I noticed that my timeout value was too short and I
keep getting unnecessary many timeouts I noticed that this
never happens in Mac OS X, so I think the timeouts don't
work on OS X.

I confirm I can reproduce that on Mac OS X 10.6.1 with libusb 0.1.12.
The timeout never happens.

I have not yet checked with libusb 1.x + libusb-compat.

The combination is a simple drop-in replacement for the old libusb 0.1.12 (at least that was my experience on Mac OS X -- no source code changes were required) and I found the combination of libusb 1.0.3 + libusb-compat 0.1.3 to be more stable on Mac OS X than the original libusb 0.1.12 for the application I was using as ptheads were involved.

If you don't want to build libusb 1.x and libusb-compat yourself, MacPorts has current versions of both of these available so it should be relatively easy to try them out.

Kyle

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libusb-devel mailing list
Libusb-devel@...
https://lists.sourceforge.net/lists/listinfo/libusb-devel