USB stack getting confused
O'Connor, Daniel
darius at dons.net.au
Sat Mar 9 10:36:15 UTC 2019
> On 9 Mar 2019, at 19:30, Hans Petter Selasky <hps at selasky.org> wrote:
> On 3/9/19 12:08 AM, O'Connor, Daniel wrote:
>> My program normally runs continually doing acquisitions of data for N seconds, doing some checks and restarting. After a while (~30 1 minute acquisitions or ~8 30 minute ones) my program can't 'see' the device (it uses libusb10) any more (it reconnects each acquisition for $REASONS). Also pretty weirdly usbconfig can't see it either(!).
>
> What is printed in dmesg? Maybe the device has a problem.
There is nothing in dmesg - no disconnect / reconnect etc.
If I hold the user space process in gdb 'forever' (eg over night) usbconfig doesn't see the device, but the moment I quit the user space process it can be seen again.
--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
More information about the freebsd-hackers
mailing list