Open joellama opened 3 years ago
Hi @joellama,
what does
cat /sys/module/usbcore/parameters/autosuspend
return on your ubuntu 20.10 machine?
Cheers, Andreas 😃
Uhoh, I really hope it's not something stupid like that! It says 2? Can't seem to find any documentation on what that actually means.
You mentioned it's sporadic, so my guess would be some weird USB problem... On linux PCs that are used for scientific measurements I'd generally recommend disabling everything related to power management.
I think usb autosuspend is disabled by adding: usbcore.autosuspend=-1
as a grub boot parameter.
You should be able to verify the setting with the cat
command from above.
I hope that helps. If not we'll have to dig a little deeper and try to create a reproducible error case.
Thanks for this @ap--. I've swapped out the USB cables just to be safe and have set usbcore.autosuspend=-1
, I'll let it run for today and tomorrow and see how it goes!
You're welcome 😊 And fingers crossed 🤞 🤞
Hi @ap--, sadly this didn't help and I'm still getting random dropouts and the code hanging. I'm now trying the windows softare that comes with the spectrographs to see if that can handle running for 12 hours straight.
Hi Joel,
Another thing worth trying would be to run the 3 spectrometers in three different processes. (You could test by running a script continuously with only one spectrometer.)
Did your tests with the default software run for more than 12h?
spectrometer and system information
current problem
I have a script that connects to 3 spectrometers and samples them every second to record the intensities. The problem is that everything works for a given amount of time (sometimes tens of minutes, sometimes hours) and then the code just hangs. On Ctrl+C I get a data transfer error.
minimal code example and error (very helpful if available)