Page 1 of 1

Linux SDK/ASI120MM Mini: USB reset on each frame

Posted: Mon Jun 10, 2019 7:20 am
by pludov
Running single exposures with the ASI120MM Mini and the indi_asi_ccd consistently makes the linux kernel complain about usb reset ! Resetting an usb device indicates a stability problem and may affect others devices.

This happens on various hardware (linaro & laptop) with multiple USB cables (always usb2). I also tried 16 vs 8bits and various bin and exposure duration with the same result.
I tried with SDK v1.14.0227 and v1.14.0425 with the same result.
The debug log is clean, no mention of any exposure failed.

The usb reset always happens exactly at exposure start. (I debbuged this with exposure > 1s...)

Maybe relevant: the cam is USB3 plugged on USB2 host. No "compatible" firmware available from ZWO.

However, it does not happen during video recording. (stream mode)


The following log is kernel output for plugin the camera then taking 3 shoots:

[16924.999689] usb 3-4.1: new high-speed USB device number 10 using xhci_hcd
[16925.100303] usb 3-4.1: New USB device found, idVendor=03c3, idProduct=120c, bcdDevice= 0.00
[16925.100309] usb 3-4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[16925.100312] usb 3-4.1: Product: ASI120MM Mini
[16925.100315] usb 3-4.1: Manufacturer: ZWO
[16948.843713] usb 3-4.1: reset high-speed USB device number 10 using xhci_hcd
[16954.259806] usb 3-4.1: reset high-speed USB device number 10 using xhci_hcd
[17209.970631] usb 3-4.1: reset high-speed USB device number 10 using xhci_hcd

Re: Linux SDK/ASI120MM Mini: USB reset on each frame

Posted: Tue Jun 11, 2019 1:20 am
by chad
Hi,
Does this Reset affect your data collection?
If it affects, then there is a problem. If not, then I guess this reset is what we wanted.
Thanks
Chad

Re: Linux SDK/ASI120MM Mini: USB reset on each frame

Posted: Tue Jun 11, 2019 10:28 am
by pludov
Hello,

I did not do extensive tests so far, as my confidence has been stopped by this scary message.

The acquisition I made have shown two other problems so far :
* exposure sometime not working at all (restarting the process one or two time fixes that one)
* under exposed frame shows up from time to time (ie it is clear from the data that some 1s exposure have been clearly shorter)

but so far, my major concern is USB stability and the reset affecting other devices (especially main imaging camera)

Thx

Re: Linux SDK/ASI120MM Mini: USB reset on each frame

Posted: Wed Jun 12, 2019 10:15 am
by Sam
the USB pipe will be reset each time before transferring data
this is the message from the camera and won't affect other devices