jetperch / pyjoulescope

Joulescope driver and utilities
https://www.joulescope.com
Apache License 2.0
37 stars 11 forks source link

Reboot loop of joulescope when the UI tries to connect #28

Closed korken89 closed 1 year ago

korken89 commented 1 year ago

Hi,

We've encountered that our joulescope never connects to the UI and that the UI gives errors on the USB communication and resets the scope. Before the UI start, dmesg shows that the joulescope is connected and has a connection. What is your recommendation?

We have installed via pip, and are running on Arch Linux. It did work before with an earlier version as well, I just updated to the latest release and it stoped working.

I have attached the log of the UI and dmesg.

dmesg:

[19572.664191] usb 1-1.2.2.1: new high-speed USB device number 11 using xhci_hcd
[19572.776938] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19572.776947] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19572.776950] usb 1-1.2.2.1: Product: Joulescope
[19572.776952] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19572.776953] usb 1-1.2.2.1: SerialNumber: 001636

----------------------- HERE WE START UI -----------------------

[19661.787475] usb 1-1.2.2.1: USB disconnect, device number 11
[19662.010830] usb 1-1.2.2.1: new high-speed USB device number 12 using xhci_hcd
[19662.123633] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19662.123644] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19662.123648] usb 1-1.2.2.1: Product: Joulescope
[19662.123651] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19662.123653] usb 1-1.2.2.1: SerialNumber: 001636
[19666.139138] usb 1-1.2.2.1: USB disconnect, device number 12
[19666.404176] usb 1-1.2.2.1: new high-speed USB device number 13 using xhci_hcd
[19666.518050] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19666.518062] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19666.518066] usb 1-1.2.2.1: Product: Joulescope
[19666.518068] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19666.518071] usb 1-1.2.2.1: SerialNumber: 001636
[19673.563807] usb 1-1.2.2.1: USB disconnect, device number 13
[19673.827816] usb 1-1.2.2.1: new high-speed USB device number 14 using xhci_hcd
[19673.936760] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19673.936765] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19673.936766] usb 1-1.2.2.1: Product: Joulescope
[19673.936768] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19673.936768] usb 1-1.2.2.1: SerialNumber: 001636
[19677.915509] usb 1-1.2.2.1: USB disconnect, device number 14
[19678.180843] usb 1-1.2.2.1: new high-speed USB device number 15 using xhci_hcd
[19678.293289] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19678.293299] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19678.293303] usb 1-1.2.2.1: Product: Joulescope
[19678.293305] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19678.293308] usb 1-1.2.2.1: SerialNumber: 001636
[19685.084188] usb 1-1.2.2.1: USB disconnect, device number 15
[19685.307514] usb 1-1.2.2.1: new high-speed USB device number 16 using xhci_hcd
[19685.416504] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19685.416511] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19685.416514] usb 1-1.2.2.1: Product: Joulescope
[19685.416516] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19685.416518] usb 1-1.2.2.1: SerialNumber: 001636
[19689.436109] usb 1-1.2.2.1: USB disconnect, device number 16
[19689.731026] usb 1-1.2.2.1: new high-speed USB device number 17 using xhci_hcd
[19689.843415] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19689.843426] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19689.843430] usb 1-1.2.2.1: Product: Joulescope
[19689.843433] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19689.843435] usb 1-1.2.2.1: SerialNumber: 001636
[19696.604369] usb 1-1.2.2.1: USB disconnect, device number 17
[19696.827498] usb 1-1.2.2.1: new high-speed USB device number 18 using xhci_hcd
[19696.936635] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19696.936646] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19696.936650] usb 1-1.2.2.1: Product: Joulescope
[19696.936653] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19696.936655] usb 1-1.2.2.1: SerialNumber: 001636
[19700.956676] usb 1-1.2.2.1: USB disconnect, device number 18
[19701.217492] usb 1-1.2.2.1: new high-speed USB device number 19 using xhci_hcd
[19701.327368] usb 1-1.2.2.1: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19701.327380] usb 1-1.2.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19701.327384] usb 1-1.2.2.1: Product: Joulescope
[19701.327386] usb 1-1.2.2.1: Manufacturer: Jetperch LLC
[19701.327389] usb 1-1.2.2.1: SerialNumber: 001636
[19703.004698] usb 1-1.2.2.1: USB disconnect, device number 19
[19837.270778] usb 1-2: new high-speed USB device number 20 using xhci_hcd
[19837.414955] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19837.414966] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19837.414969] usb 1-2: Product: Joulescope
[19837.414972] usb 1-2: Manufacturer: Jetperch LLC
[19837.414975] usb 1-2: SerialNumber: 001636
[19838.901255] usb 1-2: USB disconnect, device number 20
[19841.961158] usb 1-2: new high-speed USB device number 21 using xhci_hcd
[19842.106559] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19842.106569] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19842.106573] usb 1-2: Product: Joulescope
[19842.106576] usb 1-2: Manufacturer: Jetperch LLC
[19842.106578] usb 1-2: SerialNumber: 001636
[19843.667669] usb 1-2: USB disconnect, device number 21
[19846.730788] usb 1-2: new high-speed USB device number 22 using xhci_hcd
[19846.876949] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19846.876960] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19846.876963] usb 1-2: Product: Joulescope
[19846.876967] usb 1-2: Manufacturer: Jetperch LLC
[19846.876969] usb 1-2: SerialNumber: 001636
[19849.117204] usb 1-2: USB disconnect, device number 22
[19852.167472] usb 1-2: new high-speed USB device number 23 using xhci_hcd
[19852.309881] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19852.309891] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19852.309895] usb 1-2: Product: Joulescope
[19852.309898] usb 1-2: Manufacturer: Jetperch LLC
[19852.309901] usb 1-2: SerialNumber: 001636
[19854.573790] usb 1-2: USB disconnect, device number 23
[19857.624151] usb 1-2: new high-speed USB device number 24 using xhci_hcd
[19857.766712] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19857.766723] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19857.766726] usb 1-2: Product: Joulescope
[19857.766729] usb 1-2: Manufacturer: Jetperch LLC
[19857.766731] usb 1-2: SerialNumber: 001636
[19862.554016] usb 1-2: USB disconnect, device number 24
[19865.604122] usb 1-2: new high-speed USB device number 25 using xhci_hcd
[19865.753315] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19865.753325] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19865.753329] usb 1-2: Product: Joulescope
[19865.753332] usb 1-2: Manufacturer: Jetperch LLC
[19865.753334] usb 1-2: SerialNumber: 001636
[19869.522778] usb 1-2: USB disconnect, device number 25
[19872.571014] usb 1-2: new high-speed USB device number 26 using xhci_hcd
[19872.717158] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19872.717169] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19872.717172] usb 1-2: Product: Joulescope
[19872.717175] usb 1-2: Manufacturer: Jetperch LLC
[19872.717178] usb 1-2: SerialNumber: 001636
[19875.034788] usb 1-2: USB disconnect, device number 26
[19878.084253] usb 1-2: new high-speed USB device number 27 using xhci_hcd
[19878.226571] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19878.226579] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19878.226583] usb 1-2: Product: Joulescope
[19878.226585] usb 1-2: Manufacturer: Jetperch LLC
[19878.226587] usb 1-2: SerialNumber: 001636
[19880.545137] usb 1-2: USB disconnect, device number 27
[19883.591097] usb 1-2: new high-speed USB device number 28 using xhci_hcd
[19883.733246] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19883.733257] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19883.733261] usb 1-2: Product: Joulescope
[19883.733263] usb 1-2: Manufacturer: Jetperch LLC
[19883.733265] usb 1-2: SerialNumber: 001636
[19885.272075] usb 1-2: USB disconnect, device number 28
[19888.320782] usb 1-2: new high-speed USB device number 29 using xhci_hcd
[19888.563445] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19888.563456] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19888.563460] usb 1-2: Product: Joulescope
[19888.563463] usb 1-2: Manufacturer: Jetperch LLC
[19888.564332] usb 1-2: can't set config #1, error -71
[19888.564411] usb 1-2: USB disconnect, device number 29
[19891.607426] usb 1-2: new high-speed USB device number 30 using xhci_hcd
[19891.749876] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19891.749885] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19891.749888] usb 1-2: Product: Joulescope
[19891.749891] usb 1-2: Manufacturer: Jetperch LLC
[19891.749894] usb 1-2: SerialNumber: 001636
[19894.041136] usb 1-2: USB disconnect, device number 30
[19897.087472] usb 1-2: new high-speed USB device number 31 using xhci_hcd
[19897.229947] usb 1-2: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19897.229955] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19897.229958] usb 1-2: Product: Joulescope
[19897.229960] usb 1-2: Manufacturer: Jetperch LLC
[19897.229962] usb 1-2: SerialNumber: 001636
[19898.878275] usb 1-2: USB disconnect, device number 31
[19904.111012] usb 1-4: new high-speed USB device number 32 using xhci_hcd
[19904.253772] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19904.253783] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19904.253786] usb 1-4: Product: Joulescope
[19904.253789] usb 1-4: Manufacturer: Jetperch LLC
[19904.253792] usb 1-4: SerialNumber: 001636
[19906.074785] usb 1-4: USB disconnect, device number 32
[19909.130985] usb 1-4: new high-speed USB device number 33 using xhci_hcd
[19909.372527] usb 1-4: string descriptor 0 read error: -71
[19909.372545] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19909.372551] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19909.373321] usb 1-4: can't set config #1, error -71
[19909.373393] usb 1-4: USB disconnect, device number 33
[19912.420996] usb 1-4: new high-speed USB device number 34 using xhci_hcd
[19912.564285] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19912.564296] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19912.564300] usb 1-4: Product: Joulescope
[19912.564303] usb 1-4: Manufacturer: Jetperch LLC
[19912.564305] usb 1-4: SerialNumber: 001636
[19913.292327] usb 1-4: USB disconnect, device number 34
[19916.341014] usb 1-4: new high-speed USB device number 35 using xhci_hcd
[19916.585497] usb 1-4: unable to read config index 0 descriptor/start: -71
[19916.585511] usb 1-4: can't read configurations, error -71
[19919.630754] usb 1-4: new high-speed USB device number 37 using xhci_hcd
[19919.874604] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19919.874613] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19919.875629] usb 1-4: can't set config #1, error -71
[19919.875663] usb 1-4: USB disconnect, device number 37
[19932.657486] usb 1-4: new high-speed USB device number 38 using xhci_hcd
[19932.898252] usb 1-4: unable to read config index 0 descriptor/start: -71
[19932.898261] usb 1-4: can't read configurations, error -71
[19935.954084] usb 1-4: new high-speed USB device number 40 using xhci_hcd
[19936.198367] usb 1-4: unable to read config index 0 descriptor/start: -71
[19936.198380] usb 1-4: can't read configurations, error -71
[19939.247420] usb 1-4: new high-speed USB device number 42 using xhci_hcd
[19939.495473] usb 1-4: unable to read config index 0 descriptor/all
[19939.495483] usb 1-4: can't read configurations, error -71
[19942.537418] usb 1-4: new high-speed USB device number 44 using xhci_hcd
[19942.683227] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19942.683232] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19942.683234] usb 1-4: Product: Joulescope
[19942.683235] usb 1-4: Manufacturer: Jetperch LLC
[19942.683236] usb 1-4: SerialNumber: 001636
[19944.607951] usb 1-4: USB disconnect, device number 44
[19947.654090] usb 1-4: new high-speed USB device number 45 using xhci_hcd
[19947.897479] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19947.897485] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19947.897486] usb 1-4: Product: Joulescope
[19947.898135] usb 1-4: can't set config #1, error -71
[19947.898172] usb 1-4: USB disconnect, device number 45
[19950.944352] usb 1-4: new high-speed USB device number 46 using xhci_hcd
[19951.090488] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19951.090499] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19951.090503] usb 1-4: Product: Joulescope
[19951.090506] usb 1-4: Manufacturer: Jetperch LLC
[19951.090508] usb 1-4: SerialNumber: 001636
[19951.190288] usb 1-4: can't set config #1, error -71
[19951.190410] usb 1-4: USB disconnect, device number 46
[19954.237411] usb 1-4: new high-speed USB device number 47 using xhci_hcd
[19954.478692] usb 1-4: unable to read config index 0 descriptor/all
[19954.478703] usb 1-4: can't read configurations, error -71
[19957.524086] usb 1-4: new high-speed USB device number 49 using xhci_hcd
[19957.766793] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19957.766804] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19957.766807] usb 1-4: Product: Joulescope
[19957.767580] usb 1-4: can't set config #1, error -71
[19957.767608] usb 1-4: USB disconnect, device number 49
[19960.810979] usb 1-4: new high-speed USB device number 50 using xhci_hcd
[19961.055018] usb 1-4: unable to read config index 0 descriptor/all
[19961.055030] usb 1-4: can't read configurations, error -71
[19964.100742] usb 1-4: new high-speed USB device number 52 using xhci_hcd
[19964.345002] usb 1-4: unable to read config index 0 descriptor/all
[19964.345014] usb 1-4: can't read configurations, error -71
[19967.394115] usb 1-4: new high-speed USB device number 54 using xhci_hcd
[19967.637738] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19967.637749] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19967.637752] usb 1-4: Product: Joulescope
[19967.638405] usb 1-4: can't set config #1, error -71
[19967.638470] usb 1-4: USB disconnect, device number 54
[19970.680746] usb 1-4: new high-speed USB device number 55 using xhci_hcd
[19970.926718] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19970.926725] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19970.926726] usb 1-4: Product: Joulescope
[19970.926728] usb 1-4: Manufacturer: Jetperch LLC
[19970.928009] usb 1-4: can't set config #1, error -71
[19970.928169] usb 1-4: USB disconnect, device number 55
[19973.974081] usb 1-4: new high-speed USB device number 56 using xhci_hcd
[19974.217312] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19974.217322] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19974.217326] usb 1-4: Product: Joulescope
[19974.218592] usb 1-4: can't set config #1, error -71
[19974.218629] usb 1-4: USB disconnect, device number 56
[19977.260926] usb 1-4: new high-speed USB device number 57 using xhci_hcd
[19977.410204] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19977.410214] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19977.410218] usb 1-4: Product: Joulescope
[19977.410221] usb 1-4: Manufacturer: Jetperch LLC
[19977.410223] usb 1-4: SerialNumber: 001636
[19979.812960] usb 1-4: USB disconnect, device number 57
[19982.857658] usb 1-4: new high-speed USB device number 58 using xhci_hcd
[19983.099583] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19983.099588] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19983.099589] usb 1-4: Product: Joulescope
[19983.099590] usb 1-4: Manufacturer: Jetperch LLC
[19983.100266] usb 1-4: can't set config #1, error -71
[19983.100341] usb 1-4: USB disconnect, device number 58
[19986.137408] usb 1-4: new high-speed USB device number 59 using xhci_hcd
[19986.378702] usb 1-4: string descriptor 0 read error: -71
[19986.378714] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19986.378719] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19986.379494] usb 1-4: can't set config #1, error -71
[19986.379559] usb 1-4: USB disconnect, device number 59
[19989.424083] usb 1-4: new high-speed USB device number 60 using xhci_hcd
[19989.667549] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19989.667557] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19989.668087] usb 1-4: can't set config #1, error -71
[19989.668144] usb 1-4: USB disconnect, device number 60
[19992.720741] usb 1-4: new high-speed USB device number 61 using xhci_hcd
[19992.963025] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19992.963030] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19992.963687] usb 1-4: can't set config #1, error -71
[19992.963746] usb 1-4: USB disconnect, device number 61
[19996.014132] usb 1-4: new high-speed USB device number 62 using xhci_hcd
[19996.256256] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[19996.256267] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19996.256270] usb 1-4: Product: Joulescope
[19996.256930] usb 1-4: can't set config #1, error -71
[19996.256995] usb 1-4: USB disconnect, device number 62
[19999.297409] usb 1-4: new high-speed USB device number 63 using xhci_hcd
[19999.538101] usb 1-4: unable to read config index 0 descriptor/start: -71
[19999.538107] usb 1-4: can't read configurations, error -71
[20002.581026] usb 1-4: new high-speed USB device number 65 using xhci_hcd
[20002.704132] usb 1-4: Device not responding to setup address.
[20002.910760] usb 1-4: Device not responding to setup address.
[20003.117635] usb 1-4: device not accepting address 65, error -71
[20005.730734] usb 1-4: new high-speed USB device number 67 using xhci_hcd
[20005.873223] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20005.873228] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20005.873229] usb 1-4: Product: Joulescope
[20005.873230] usb 1-4: Manufacturer: Jetperch LLC
[20005.873231] usb 1-4: SerialNumber: 001636
[20006.537661] usb 1-4: USB disconnect, device number 67
[20009.580983] usb 1-4: new high-speed USB device number 68 using xhci_hcd
[20009.827438] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20009.827450] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20009.827453] usb 1-4: Product: Joulescope
[20009.827456] usb 1-4: Manufacturer: Jetperch LLC
[20009.829341] usb 1-4: can't set config #1, error -71
[20009.829376] usb 1-4: USB disconnect, device number 68
[20012.864269] usb 1-4: new high-speed USB device number 69 using xhci_hcd
[20013.110790] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20013.110801] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20013.110805] usb 1-4: Product: Joulescope
[20013.111591] usb 1-4: can't set config #1, error -71
[20013.111661] usb 1-4: USB disconnect, device number 69
[20016.154071] usb 1-4: new high-speed USB device number 70 using xhci_hcd
[20016.395171] usb 1-4: string descriptor 0 read error: -71
[20016.395181] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20016.395186] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20016.395939] usb 1-4: can't set config #1, error -71
[20016.395990] usb 1-4: USB disconnect, device number 70
[20019.437404] usb 1-4: new high-speed USB device number 71 using xhci_hcd
[20019.561037] usb 1-4: Device not responding to setup address.
[20019.767754] usb 1-4: Device not responding to setup address.
[20019.974060] usb 1-4: device not accepting address 71, error -71
[20022.577405] usb 1-4: new high-speed USB device number 73 using xhci_hcd
[20022.820977] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20022.820991] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20022.820995] usb 1-4: Product: Joulescope
[20022.821894] usb 1-4: can't set config #1, error -71
[20022.821967] usb 1-4: USB disconnect, device number 73
[20025.860788] usb 1-4: new high-speed USB device number 74 using xhci_hcd
[20026.101814] usb 1-4: string descriptor 0 read error: -71
[20026.101826] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20026.101831] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20026.102612] usb 1-4: can't set config #1, error -71
[20026.102661] usb 1-4: USB disconnect, device number 74
[20029.144063] usb 1-4: new high-speed USB device number 75 using xhci_hcd
[20029.387179] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20029.387188] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20029.388609] usb 1-4: can't set config #1, error -71
[20029.388692] usb 1-4: USB disconnect, device number 75
[20032.424059] usb 1-4: new high-speed USB device number 76 using xhci_hcd
[20032.670773] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20032.670777] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20032.671317] usb 1-4: can't set config #1, error -71
[20032.671344] usb 1-4: USB disconnect, device number 76
[20035.707389] usb 1-4: new high-speed USB device number 77 using xhci_hcd
[20035.953262] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20035.953272] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20035.953276] usb 1-4: Product: Joulescope
[20035.954039] usb 1-4: can't set config #1, error -71
[20035.954089] usb 1-4: USB disconnect, device number 77
[20038.997786] usb 1-4: new high-speed USB device number 78 using xhci_hcd
[20039.243232] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20039.243237] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20039.243894] usb 1-4: can't set config #1, error -71
[20039.243924] usb 1-4: USB disconnect, device number 78
[20042.287387] usb 1-4: new high-speed USB device number 79 using xhci_hcd
[20042.535354] usb 1-4: unable to read config index 0 descriptor/start: -71
[20042.535362] usb 1-4: can't read configurations, error -71
[20045.577592] usb 1-4: new high-speed USB device number 81 using xhci_hcd
[20045.819853] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20045.819863] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20045.819867] usb 1-4: Product: Joulescope
[20045.819870] usb 1-4: Manufacturer: Jetperch LLC
[20045.820498] usb 1-4: can't set config #1, error -71
[20045.820562] usb 1-4: USB disconnect, device number 81
[20048.860720] usb 1-4: new high-speed USB device number 82 using xhci_hcd
[20049.101827] usb 1-4: unable to read config index 0 descriptor/start: -71
[20049.101840] usb 1-4: can't read configurations, error -71
[20052.144067] usb 1-4: new high-speed USB device number 84 using xhci_hcd
[20052.385646] usb 1-4: unable to read config index 0 descriptor/all
[20052.385651] usb 1-4: can't read configurations, error -71
[20055.420722] usb 1-4: new high-speed USB device number 86 using xhci_hcd
[20055.663381] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20055.663392] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20055.663395] usb 1-4: Product: Joulescope
[20055.664064] usb 1-4: can't set config #1, error -71
[20055.664133] usb 1-4: USB disconnect, device number 86
[20058.700727] usb 1-4: new high-speed USB device number 87 using xhci_hcd
[20058.945761] usb 1-4: unable to read config index 0 descriptor/all
[20058.945774] usb 1-4: can't read configurations, error -71
[20061.994046] usb 1-4: new high-speed USB device number 89 using xhci_hcd
[20062.236584] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20062.236589] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20062.236590] usb 1-4: Product: Joulescope
[20062.237121] usb 1-4: can't set config #1, error -71
[20062.237149] usb 1-4: USB disconnect, device number 89
[20065.274294] usb 1-4: new high-speed USB device number 90 using xhci_hcd
[20065.397437] usb 1-4: Device not responding to setup address.
[20065.604066] usb 1-4: Device not responding to setup address.
[20065.810730] usb 1-4: device not accepting address 90, error -71
[20068.414083] usb 1-4: new high-speed USB device number 92 using xhci_hcd
[20068.655786] usb 1-4: unable to read config index 0 descriptor/all
[20068.655793] usb 1-4: can't read configurations, error -71
[20071.694086] usb 1-4: new high-speed USB device number 94 using xhci_hcd
[20071.934894] usb 1-4: unable to read config index 0 descriptor/start: -71
[20071.934906] usb 1-4: can't read configurations, error -71
[20074.970811] usb 1-4: new high-speed USB device number 96 using xhci_hcd
[20075.113304] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20075.113312] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20075.113315] usb 1-4: Product: Joulescope
[20075.113317] usb 1-4: Manufacturer: Jetperch LLC
[20075.113319] usb 1-4: SerialNumber: 001636
[20076.728651] usb 1-4: USB disconnect, device number 96
[20079.767389] usb 1-4: new high-speed USB device number 97 using xhci_hcd
[20080.017680] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20080.017690] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20080.017694] usb 1-4: Product: Joulescope
[20080.017697] usb 1-4: Manufacturer: Jetperch LLC
[20080.018452] usb 1-4: can't set config #1, error -71
[20080.018522] usb 1-4: USB disconnect, device number 97
[20083.054336] usb 1-4: new high-speed USB device number 98 using xhci_hcd
[20083.180775] usb 1-4: Device not responding to setup address.
[20083.384087] usb 1-4: Device not responding to setup address.
[20083.590729] usb 1-4: device not accepting address 98, error -71
[20086.197390] usb 1-4: new high-speed USB device number 100 using xhci_hcd
[20086.439987] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20086.439994] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20086.439996] usb 1-4: Product: Joulescope
[20086.439997] usb 1-4: Manufacturer: Jetperch LLC
[20086.441138] usb 1-4: can't set config #1, error -71
[20086.441211] usb 1-4: USB disconnect, device number 100
[20089.477390] usb 1-4: new high-speed USB device number 101 using xhci_hcd
[20089.718953] usb 1-4: unable to read config index 0 descriptor/all
[20089.718959] usb 1-4: can't read configurations, error -71
[20092.760725] usb 1-4: new high-speed USB device number 103 using xhci_hcd
[20092.907353] usb 1-4: New USB device found, idVendor=16d0, idProduct=0e88, bcdDevice= 0.03
[20092.907373] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20092.907378] usb 1-4: Product: Joulescope
[20092.907380] usb 1-4: Manufacturer: Jetperch LLC
[20092.907383] usb 1-4: SerialNumber: 001636

UI:

*****************************
* Joulescope User Interface *
* UI Version = 0.9.11       *
* Driver Version = 0.9.11   *
*****************************

info = {
  "joulescope": {
    "ui_version": "0.9.11",
    "driver_version": "0.9.11"
  },
  "platform": {
    "name": "linux",
    "python_version": "3.10.6 (main, Aug  3 2022, 17:39:45) [GCC 12.1.1 20220730]",
    "platform": "Linux-5.19.3-arch1-1-x86_64-with-glibc2.36",
    "processor": "",
    "executable": "/usr/bin/python",
    "frozen": false,
    "paths": {
      "dirs": {
        "app_path": "/home/emifre/.joulescope",
        "config": "/home/emifre/.joulescope/config",
        "log": "/home/emifre/.joulescope/log",
        "firmware": "/home/emifre/.joulescope/firmware",
        "themes": "/home/emifre/.joulescope/themes",
        "data": "/home/emifre/Documents/joulescope"
      },
      "files": {
        "config": "/home/emifre/.joulescope/config/joulescope_config.json"
      }
    }
  }
}

=====
ERROR:2022-08-25 13:31:07,646:device.py:687:joulescope.usb.libusb.device:endpoint halt 1: transfer callback with status 1
WARNING:2022-08-25 13:31:07,647:driver.py:984:joulescope.driver:status failed 1: usb control transfer failed: 1
WARNING:2022-08-25 13:31:07,648:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:31:07,648:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:31:07,649:driver.py:887:joulescope.driver:Device.stop() while attempting _stream_settings_send
ERROR:2022-08-25 13:31:13,158:device.py:687:joulescope.usb.libusb.device:endpoint halt 1: transfer callback with status 1
WARNING:2022-08-25 13:31:13,159:driver.py:984:joulescope.driver:status failed 1: usb control transfer failed: 1
WARNING:2022-08-25 13:31:13,159:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:31:13,160:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:31:13,160:driver.py:887:joulescope.driver:Device.stop() while attempting _stream_settings_send
WARNING:2022-08-25 13:31:18,668:driver.py:984:joulescope.driver:status failed 1: usb control transfer failed: 1
ERROR:2022-08-25 13:31:18,669:device.py:687:joulescope.usb.libusb.device:endpoint halt 1: transfer callback with status 1
WARNING:2022-08-25 13:31:18,670:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:31:18,670:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:31:18,670:driver.py:887:joulescope.driver:Device.stop() while attempting _stream_settings_send
WARNING:2022-08-25 13:31:23,396:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:31:23,396:driver.py:499:joulescope.driver:usb control transfer failed 5
WARNING:2022-08-25 13:31:23,422:driver.py:615:joulescope.driver:calibration_read transfer failed 1
ERROR:2022-08-25 13:31:23,473:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=1)
WARNING:2022-08-25 13:31:32,165:driver.py:984:joulescope.driver:status failed 1: usb control transfer failed: 1
ERROR:2022-08-25 13:31:32,165:device.py:687:joulescope.usb.libusb.device:endpoint halt 1: transfer callback with status 5
WARNING:2022-08-25 13:31:32,167:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:31:32,167:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:31:32,167:driver.py:887:joulescope.driver:Device.stop() while attempting _stream_settings_send
WARNING:2022-08-25 13:31:36,876:driver.py:637:joulescope.driver:calibration_read transfer failed 1
WARNING:2022-08-25 13:31:37,002:device.py:524:joulescope.usb.libusb.device:device_removed
ERROR:2022-08-25 13:31:37,028:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=1)
ERROR:2022-08-25 13:31:44,198:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=1)
ERROR:2022-08-25 13:31:51,416:device.py:823:joulescope.usb.libusb.device:open failed: 16d0/0e88/001636
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 808, in open
    self._open()
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 793, in _open
    elif serial_number == _get_string_descriptor(dh, descriptor.iSerialNumber):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 351, in _get_string_descriptor
    raise RuntimeError('control transfer could not get string descriptor: %d' % (rv, ))
RuntimeError: control transfer could not get string descriptor: -4
ERROR:2022-08-25 13:31:51,416:device_thread.py:86:joulescope.usb.device_thread:While running command
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 808, in open
    self._open()
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 793, in _open
    elif serial_number == _get_string_descriptor(dh, descriptor.iSerialNumber):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 351, in _get_string_descriptor
    raise RuntimeError('control transfer could not get string descriptor: %d' % (rv, ))
RuntimeError: control transfer could not get string descriptor: -4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/device_thread.py", line 64, in _cmd_process
    rv = self._device.open(event_callback_fn)
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 825, in open
    raise IOError(ex)
OSError: control transfer could not get string descriptor: -4
WARNING:2022-08-25 13:31:51,594:driver.py:499:joulescope.driver:usb control transfer failed 5
WARNING:2022-08-25 13:31:51,619:driver.py:615:joulescope.driver:calibration_read transfer failed 5
ERROR:2022-08-25 13:31:51,670:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=5)
ERROR:2022-08-25 13:32:22,731:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=1)
ERROR:2022-08-25 13:32:57,936:device.py:687:joulescope.usb.libusb.device:endpoint halt 1: transfer callback with status 1
WARNING:2022-08-25 13:32:57,937:driver.py:984:joulescope.driver:status failed 1: usb control transfer failed: 1
WARNING:2022-08-25 13:32:57,988:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:32:57,988:device.py:524:joulescope.usb.libusb.device:device_removed
WARNING:2022-08-25 13:32:57,988:driver.py:887:joulescope.driver:Device.stop() while attempting _stream_settings_send
ERROR:2022-08-25 13:33:24,661:device.py:823:joulescope.usb.libusb.device:open failed: 16d0/0e88/001636
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 808, in open
    self._open()
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 793, in _open
    elif serial_number == _get_string_descriptor(dh, descriptor.iSerialNumber):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 342, in _get_string_descriptor
    raise RuntimeError('control_transfer could not get language: %d' % (rv, ))
RuntimeError: control_transfer could not get language: -4
ERROR:2022-08-25 13:33:24,662:device_thread.py:86:joulescope.usb.device_thread:While running command
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 808, in open
    self._open()
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 793, in _open
    elif serial_number == _get_string_descriptor(dh, descriptor.iSerialNumber):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 342, in _get_string_descriptor
    raise RuntimeError('control_transfer could not get language: %d' % (rv, ))
RuntimeError: control_transfer could not get language: -4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/usb/device_thread.py", line 64, in _cmd_process
    rv = self._device.open(event_callback_fn)
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 825, in open
    raise IOError(ex)
OSError: control_transfer could not get language: -4
WARNING:2022-08-25 13:33:24,838:driver.py:499:joulescope.driver:usb control transfer failed 5
WARNING:2022-08-25 13:33:24,863:driver.py:615:joulescope.driver:calibration_read transfer failed 5
ERROR:2022-08-25 13:33:24,914:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=5)
WARNING:2022-08-25 13:34:34,726:driver.py:637:joulescope.driver:calibration_read transfer failed 1
WARNING:2022-08-25 13:34:34,878:device.py:504:joulescope.usb.libusb.device:libusb_submit_transfer [control] => -4
WARNING:2022-08-25 13:34:34,879:device.py:524:joulescope.usb.libusb.device:device_removed
ERROR:2022-08-25 13:34:34,879:main.py:918:joulescope_ui.main:during parameter_set
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope_ui/main.py", line 916, in _on_device_parameter
    self._device.parameter_set(topic, value)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 443, in parameter_set
    self._stream_settings_send()
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 722, in _stream_settings_send
    _ioerror_on_bad_result(rv)
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 48, in _ioerror_on_bad_result
    raise IOError('usb.Device %s' % (rv,))
OSError: usb.Device ControlTransferResponse(result=5)
ERROR:2022-08-25 13:34:51,600:driver.py:1338:joulescope.driver:while scanning for devices
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/joulescope/driver.py", line 1331, in scan
    devices = usb.scan(name)
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 1028, in scan
    serial_number = _get_string_descriptor(dh, descriptor.iSerialNumber)
  File "/usr/lib/python3.10/site-packages/joulescope/usb/libusb/device.py", line 351, in _get_string_descriptor
    raise RuntimeError('control transfer could not get string descriptor: %d' % (rv, ))
RuntimeError: control transfer could not get string descriptor: -1
mliberty1 commented 1 year ago

HI @korken89 - Sorry to hear that you are having issues with your Joulescope, but thank you for the logs! I took a look, and I suspect that the sensor-side power supply is not powering up correctly on your Joulescope unit. I have a few things to try:

  1. Can you plug your Joulescope directly into a USB port on your host computer? Please avoid any hubs or docks. This failure mode is possible if a hub/dock is unable to supply enough power to your Joulescope unit. Any change?

  2. If you see no change with (1), do you have access to a Microsoft Windows computer? Can you try using this Joulescope unit with that computer? This will help isolate the issue to the Joulescope unit or the Arch computer.

korken89 commented 1 year ago

Hi, thanks for the input!

We gave it a try on an Ubuntu computer, and it works fine. So this got us testing a bit. After some experimentation we noticed that it only wanted to work if we connected it to a powered USB Hub (external power). My guess is that the ports on the laptop can't provide the current for some reason, while the Hub can. It's a Thinkpad E14 laptop that we are using, so I guess the budget laptops might not be the best...

So all in all, it is working now! :) Thanks again for your time!

mliberty1 commented 1 year ago

Hi @korken89 - That's a first! I have never heard of a computer (laptop or desktop) not being able to supply sufficient power and still enumerating the device. The USB 2 spec allows devices to request up to 500 mA which is what Joulescopes request. USB battery charging and USB-PD allows devices to request a lot more current.

I wonder if that laptop is very aggressive in limiting current. Joulescopes do draw the full amount when the sensor-side powers up. Joulescopes tend to draw about 250 mA in normal operation.

Either way, great to hear that you are back up and working!