Replies: 1 comment 2 replies
-
Hi @jetmonk, Can you reproduce this behavior with python-seabreeze? I remember during development that unplugging and reconnecting the spectrometer was needed every now and then when an incorrect command was sent to the spectrometer or a read buffer wasn't fully emptied. The spectrometer basically ended up in an undefined state. But this happened more often when developing the pyusb based backend. Can you reproduce the connection loss reliably? And if so: what is the minimal set of API calls that reproduce your error? Cheers, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apologies in advance from digressing from python-seabreeze, but it's hard to find any community using SeaBreeze.
I'm writing an interface to SeaBreeze 3.0.11 for Common Lisp, currently for a USB4000.
Everything works fine for a while, except that open devices seem to vanish after some timeout, or system sleep.
Specifically, the USB4000 still shows up on the OSX/Darwin usb bus. The function
sbapi_get_device_ids()
shows that there is a device at device_id=2. But any attempt to access or reopen the device, likesbapi_open_device(2)
, gives Error 2 (No device found).The only way to get the device back is to unplug it from the usb, and plug it back in.
Has anyone encountered this, and, if so, has python-seabreeze found a workaround?
Beta Was this translation helpful? Give feedback.
All reactions