Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mustang GT 40: No device found #25

Open
callmemagnus opened this issue Feb 26, 2024 · 8 comments
Open

Mustang GT 40: No device found #25

callmemagnus opened this issue Feb 26, 2024 · 8 comments

Comments

@callmemagnus
Copy link

I'm trying to make plug work with my Mustang GT 40.

I took to ownership of the AUR package for this plugin as the previous versions did not compile anymore.

I'm using version 1.4.5.

Is there any successful attempt by someone fro this amp ?

Feb 26 08:26:21 tuxedo2 kernel: usb 1-2: new high-speed USB device number 8 using xhci_hcd
Feb 26 08:26:21 tuxedo2 kernel: usb 1-2: New USB device found, idVendor=1ed8, idProduct=0032, bcdDevice= 4.01
Feb 26 08:26:21 tuxedo2 kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 26 08:26:21 tuxedo2 kernel: usb 1-2: Product: Fender Mustang-GT USB Audio
Feb 26 08:26:21 tuxedo2 kernel: usb 1-2: Manufacturer: FMIC

Seems that the amp is seen by the system. I can use it as an audio device.

LIBUSB_DEBUG=4 plug
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000028] [00005a41] libusb: debug [libusb_init_context] created default context
[ 0.000037] [00005a41] libusb: debug [libusb_init_context] libusb v1.0.27.11882
[ 0.000048] [00005a41] libusb: debug [usbi_add_event_source] add fd 11 events 1
[ 0.000053] [00005a41] libusb: debug [usbi_io_init] using timer for timeouts
[ 0.000056] [00005a41] libusb: debug [usbi_add_event_source] add fd 12 events 1
[ 0.000066] [00005a41] libusb: debug [get_kernel_version] reported kernel version is 6.6.16-2-MANJARO
[ 0.000086] [00005a41] libusb: debug [op_init] found usbfs at /dev/bus/usb
[ 0.000090] [00005a41] libusb: debug [op_init] max iso packet length is (likely) 98304 bytes
[ 0.000100] [00005a41] libusb: debug [op_init] sysfs is available
[ 0.000348] [00005a46] libusb: debug [linux_udev_event_thread_main] udev event thread entering
[ 0.004559] [00005a41] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0
[ 0.004568] [00005a41] libusb: debug [linux_get_device_address] scan usb1
[ 0.004590] [00005a41] libusb: debug [linux_get_device_address] bus=1 dev=1
[ 0.004594] [00005a41] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257
[ 0.004598] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257)
[ 0.004675] [00005a41] libusb: debug [linux_get_device_address] getting address for device: 1-3 detached: 0
[ 0.004679] [00005a41] libusb: debug [linux_get_device_address] scan 1-3
[ 0.004700] [00005a41] libusb: debug [linux_get_device_address] bus=1 dev=2
[ 0.004704] [00005a41] libusb: debug [linux_enumerate_device] busnum 1 devaddr 2 session_id 258
[ 0.004706] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 1/2 (session 258)
[ 0.004729] [00005a41] libusb: debug [linux_get_parent_info] dev 0x5558b2eac8b0 (1-3) has parent 0x5558b2eaa0d0 (usb1) port 3
[ 0.004784] [00005a41] libusb: debug [linux_get_device_address] getting address for device: 1-4 detached: 0
[ 0.004787] [00005a41] libusb: debug [linux_get_device_address] scan 1-4
[ 0.004808] [00005a41] libusb: debug [linux_get_device_address] bus=1 dev=3
[ 0.004812] [00005a41] libusb: debug [linux_enumerate_device] busnum 1 devaddr 3 session_id 259
[ 0.004815] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 1/3 (session 259)
[ 0.004837] [00005a41] libusb: debug [linux_get_parent_info] dev 0x5558b2eaaeb0 (1-4) has parent 0x5558b2eaa0d0 (usb1) port 4
[ 0.004891] [00005a41] libusb: debug [linux_get_device_address] getting address for device: 1-4.1 detached: 0
[ 0.004895] [00005a41] libusb: debug [linux_get_device_address] scan 1-4.1
[ 0.004916] [00005a41] libusb: debug [linux_get_device_address] bus=1 dev=4
[ 0.004920] [00005a41] libusb: debug [linux_enumerate_device] busnum 1 devaddr 4 session_id 260
[ 0.004922] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 1/4 (session 260)
[ 0.004948] [00005a41] libusb: debug [linux_get_parent_info] dev 0x5558b2eaa5f0 (1-4.1) has parent 0x5558b2eaaeb0 (1-4) port 1
[ 0.005004] [00005a41] libusb: debug [linux_get_device_address] getting address for device: 1-4.4 detached: 0
[ 0.005008] [00005a41] libusb: debug [linux_get_device_address] scan 1-4.4
[ 0.005030] [00005a41] libusb: debug [linux_get_device_address] bus=1 dev=6
[ 0.005034] [00005a41] libusb: debug [linux_enumerate_device] busnum 1 devaddr 6 session_id 262
[ 0.005040] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 1/6 (session 262)
[ 0.005062] [00005a41] libusb: debug [linux_get_parent_info] dev 0x5558b2eaafd0 (1-4.4) has parent 0x5558b2eaaeb0 (1-4) port 4
[ 0.005111] [00005a41] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0
[ 0.005114] [00005a41] libusb: debug [linux_get_device_address] scan usb2
[ 0.005135] [00005a41] libusb: debug [linux_get_device_address] bus=2 dev=1
[ 0.005138] [00005a41] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513
[ 0.005141] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513)
[ 0.005207] [00005a41] libusb: debug [linux_get_device_address] getting address for device: usb3 detached: 0
[ 0.005210] [00005a41] libusb: debug [linux_get_device_address] scan usb3
[ 0.005231] [00005a41] libusb: debug [linux_get_device_address] bus=3 dev=1
[ 0.005234] [00005a41] libusb: debug [linux_enumerate_device] busnum 3 devaddr 1 session_id 769
[ 0.005237] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 3/1 (session 769)
[ 0.005303] [00005a41] libusb: debug [linux_get_device_address] getting address for device: usb4 detached: 0
[ 0.005306] [00005a41] libusb: debug [linux_get_device_address] scan usb4
[ 0.005327] [00005a41] libusb: debug [linux_get_device_address] bus=4 dev=1
[ 0.005331] [00005a41] libusb: debug [linux_enumerate_device] busnum 4 devaddr 1 session_id 1025
[ 0.005333] [00005a41] libusb: debug [linux_enumerate_device] allocating new device for 4/1 (session 1025)
[ 0.125775] [00005a41] libusb: debug [libusb_get_device_list]  
[ 0.125794] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125798] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125800] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125802] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125805] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125808] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125811] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[ 0.125814] [00005a41] libusb: debug [libusb_get_device_descriptor]  
ERROR:  No device found
[12.322935] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[12.322959] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[12.323072] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=7
[12.323084] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: add.
[12.323102] [00005a46] libusb: debug [linux_enumerate_device] busnum 1 devaddr 7 session_id 263
[12.323118] [00005a46] libusb: debug [linux_enumerate_device] allocating new device for 1/7 (session 263)
[12.323205] [00005a46] libusb: debug [linux_get_parent_info] dev 0x7fc564002a00 (1-2) has parent 0x5558b2eaa0d0 (usb1) port 2
[12.426512] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[12.426543] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[12.426660] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=7
[12.426672] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: bind.
[25.805772] [00005a41] libusb: debug [libusb_get_device_list]  
[25.805833] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805839] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805844] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805849] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805854] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805859] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805864] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805869] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[25.805875] [00005a41] libusb: debug [libusb_get_device_descriptor]  
ERROR:  No device found
[159.419649] [00005a41] libusb: debug [libusb_get_device_list]  
[159.419686] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419695] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419703] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419711] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419718] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419725] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419733] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419741] [00005a41] libusb: debug [libusb_get_device_descriptor]  
[159.419749] [00005a41] libusb: debug [libusb_get_device_descriptor]  
ERROR:  No device found
[406.566071] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[406.566086] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[406.576224] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 1
[406.576250] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: remove.
[411.919224] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[411.919239] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[411.919303] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=8
[411.919310] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: add.
[411.919314] [00005a46] libusb: debug [linux_enumerate_device] busnum 1 devaddr 8 session_id 264
[411.919318] [00005a46] libusb: debug [linux_enumerate_device] allocating new device for 1/8 (session 264)
[411.919349] [00005a46] libusb: debug [linux_get_parent_info] dev 0x7fc564003ed0 (1-2) has parent 0x5558b2eaa0d0 (usb1) port 2
[411.932435] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[411.932451] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[411.932496] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=8
[411.932500] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: bind.
[601.283941] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[601.283959] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[601.292325] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 1
[601.292355] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: remove.
[608.703245] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[608.703273] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[608.703406] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=9
[608.703424] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: add.
[608.703433] [00005a46] libusb: debug [linux_enumerate_device] busnum 1 devaddr 9 session_id 265
[608.703444] [00005a46] libusb: debug [linux_enumerate_device] allocating new device for 1/9 (session 265)
[608.703541] [00005a46] libusb: debug [linux_get_parent_info] dev 0x7fc5640050b0 (1-2) has parent 0x5558b2eaa0d0 (usb1) port 2
[608.720937] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[608.720961] [00005a46] libusb: debug [linux_get_device_address] scan 1-2
[608.721033] [00005a46] libusb: debug [linux_get_device_address] bus=1 dev=9
[608.721040] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: bind.
[678.992878] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 3-2 detached: 0
[678.992897] [00005a46] libusb: debug [linux_get_device_address] scan 3-2
[678.992965] [00005a46] libusb: debug [linux_get_device_address] bus=3 dev=2
[678.992969] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: add.
[678.992973] [00005a46] libusb: debug [linux_enumerate_device] busnum 3 devaddr 2 session_id 770
[678.992977] [00005a46] libusb: debug [linux_enumerate_device] allocating new device for 3/2 (session 770)
[678.993015] [00005a46] libusb: debug [linux_get_parent_info] dev 0x7fc5640028c0 (3-2) has parent 0x5558b2eaaa80 (usb3) port 2
[679.009388] [00005a46] libusb: debug [linux_get_device_address] getting address for device: 3-2 detached: 0
[679.009405] [00005a46] libusb: debug [linux_get_device_address] scan 3-2
[679.009451] [00005a46] libusb: debug [linux_get_device_address] bus=3 dev=2
[679.009456] [00005a46] libusb: debug [udev_hotplug_event] udev hotplug event. action: bind.
[792.304043] [00005a41] libusb: debug [libusb_exit] destroying default context
[792.304058] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.7
[792.304061] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.8
[792.304065] [00005a41] libusb: debug [libusb_unref_device] destroy device 3.2
[792.304068] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.9
[792.304072] [00005a41] libusb: debug [libusb_unref_device] destroy device 4.1
[792.304074] [00005a41] libusb: debug [libusb_unref_device] destroy device 3.1
[792.304078] [00005a41] libusb: debug [libusb_unref_device] destroy device 2.1
[792.304081] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.6
[792.304085] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.4
[792.304087] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.3
[792.304090] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.2
[792.304094] [00005a41] libusb: debug [libusb_unref_device] destroy device 1.1
[792.304112] [00005a46] libusb: debug [linux_udev_event_thread_main] udev event thread exiting
[792.304189] [00005a41] libusb: debug [usbi_remove_event_source] remove fd 12
[792.304195] [00005a41] libusb: debug [usbi_remove_event_source] remove fd 11

I don't see anything useful here.

Is there something I can try to make this work ?

@offa
Copy link
Owner

offa commented Feb 26, 2024

The device PID isn't supported and not listed here. The main question is though: Does it use the Mustang protocol, or something different like the LT series?

I took to ownership of the AUR package for this plugin as the previous versions did not compile anymore.

Nice, thank you! 😃

@callmemagnus
Copy link
Author

Ha! I didn't see the list... Shame on me.

Regarding the similarity with the LT, I don't know, both products look surprisingly similar from an external point of view.

I've only used the Fender Tone android App to access it via Bluetooth.

I now wonder if the GT provides anything more than an audio interface over USB... I will check that.

@offa
Copy link
Owner

offa commented Feb 26, 2024

You can do a simple test:

  1. Add the PID 0032 to the linked code
  2. compile, run and see how far you get / where it fails

@callmemagnus
Copy link
Author

I added

diff --git a/src/com/ConnectionFactory.cpp b/src/com/ConnectionFactory.cpp
index 6c52c31..71b6b2d 100644
--- a/src/com/ConnectionFactory.cpp
+++ b/src/com/ConnectionFactory.cpp
@@ -41,6 +41,7 @@ namespace plug::com
             inline constexpr std::uint16_t mustangFloor{0x0012};
             inline constexpr std::uint16_t mustangI_II_v2{0x0014};
             inline constexpr std::uint16_t mustangIII_IV_V_v2{0x0016};
+            inline constexpr std::uint16_t mustangGT_40{0x0032};
         }
 
         inline constexpr std::initializer_list<std::uint16_t> pids{
@@ -50,7 +51,8 @@ namespace plug::com
             usbPID::mustangMini,
             usbPID::mustangFloor,
             usbPID::mustangI_II_v2,
-            usbPID::mustangIII_IV_V_v2};
+            usbPID::mustangIII_IV_V_v2,
+            usbPID::mustangGT_40};
 
         DeviceModel getModel(std::uint16_t pid)
         {
@@ -70,6 +72,8 @@ namespace plug::com
                     return DeviceModel{"Mustang I/II", DeviceModel::Category::MustangV2, 24};
                 case usbPID::mustangIII_IV_V_v2:
                     return DeviceModel{"Mustang III/IV/V", DeviceModel::Category::MustangV2, 100};
+                case usbPID::mustangGT_40:
+                    return DeviceModel{"Mustang GT40", DeviceModel::Category::MustangV2, 100};
                 default:
                     throw CommunicationException{"Unknown device pid: " + std::to_string(pid)};
             }

Last changed line: total guess!

I also added the productId in a udev file rule with:

ATTRS{idVendor}=="1ed8", ATTRS{idProduct}=="0032", ENV{ID_AUDIO_MODELING_AMP}="1", MODE="0666"

Running the compiled version:

$ LIBUSB_DEBUG=4 ./src/plug                                         
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000019] [000fd316] libusb: debug [libusb_init_context] created default context
[ 0.000024] [000fd316] libusb: debug [libusb_init_context] libusb v1.0.27.11882
[ 0.000031] [000fd316] libusb: debug [usbi_add_event_source] add fd 16 events 1
[ 0.000037] [000fd316] libusb: debug [usbi_io_init] using timer for timeouts
[ 0.000040] [000fd316] libusb: debug [usbi_add_event_source] add fd 17 events 1
[ 0.000047] [000fd316] libusb: debug [get_kernel_version] reported kernel version is 6.6.16-2-MANJARO
[ 0.000065] [000fd316] libusb: debug [op_init] found usbfs at /dev/bus/usb
[ 0.000069] [000fd316] libusb: debug [op_init] max iso packet length is (likely) 98304 bytes
[ 0.000074] [000fd316] libusb: debug [op_init] sysfs is available
[ 0.000250] [000fd31d] libusb: debug [linux_udev_event_thread_main] udev event thread entering
[ 0.005661] [000fd316] libusb: debug [linux_get_device_address] getting address for device: usb1 detached: 0
[ 0.005669] [000fd316] libusb: debug [linux_get_device_address] scan usb1
[ 0.005693] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=1
[ 0.005697] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 1 session_id 257
[ 0.005713] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/1 (session 257)
[ 0.005795] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 1-2 detached: 0
[ 0.005799] [000fd316] libusb: debug [linux_get_device_address] scan 1-2
[ 0.005821] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=16
[ 0.005823] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 16 session_id 272
[ 0.005827] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/16 (session 272)
[ 0.005849] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14a4d50 (1-2) has parent 0x55a5a14eefa0 (usb1) port 2
[ 0.005922] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 1-3 detached: 0
[ 0.005929] [000fd316] libusb: debug [linux_get_device_address] scan 1-3
[ 0.005955] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=2
[ 0.005959] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 2 session_id 258
[ 0.005962] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/2 (session 258)
[ 0.005987] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14ef0c0 (1-3) has parent 0x55a5a14eefa0 (usb1) port 3
[ 0.006052] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 1-4 detached: 0
[ 0.006056] [000fd316] libusb: debug [linux_get_device_address] scan 1-4
[ 0.006078] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=3
[ 0.006080] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 3 session_id 259
[ 0.006083] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/3 (session 259)
[ 0.006104] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14a4a50 (1-4) has parent 0x55a5a14eefa0 (usb1) port 4
[ 0.006162] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 1-4.1 detached: 0
[ 0.006165] [000fd316] libusb: debug [linux_get_device_address] scan 1-4.1
[ 0.006188] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=4
[ 0.006192] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 4 session_id 260
[ 0.006195] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/4 (session 260)
[ 0.006218] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14a5b30 (1-4.1) has parent 0x55a5a14a4a50 (1-4) port 1
[ 0.006276] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 1-4.4 detached: 0
[ 0.006278] [000fd316] libusb: debug [linux_get_device_address] scan 1-4.4
[ 0.006299] [000fd316] libusb: debug [linux_get_device_address] bus=1 dev=6
[ 0.006301] [000fd316] libusb: debug [linux_enumerate_device] busnum 1 devaddr 6 session_id 262
[ 0.006304] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 1/6 (session 262)
[ 0.006330] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14a5a10 (1-4.4) has parent 0x55a5a14a4a50 (1-4) port 4
[ 0.006382] [000fd316] libusb: debug [linux_get_device_address] getting address for device: usb2 detached: 0
[ 0.006385] [000fd316] libusb: debug [linux_get_device_address] scan usb2
[ 0.006406] [000fd316] libusb: debug [linux_get_device_address] bus=2 dev=1
[ 0.006409] [000fd316] libusb: debug [linux_enumerate_device] busnum 2 devaddr 1 session_id 513
[ 0.006412] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 2/1 (session 513)
[ 0.006482] [000fd316] libusb: debug [linux_get_device_address] getting address for device: usb3 detached: 0
[ 0.006486] [000fd316] libusb: debug [linux_get_device_address] scan usb3
[ 0.006507] [000fd316] libusb: debug [linux_get_device_address] bus=3 dev=1
[ 0.006510] [000fd316] libusb: debug [linux_enumerate_device] busnum 3 devaddr 1 session_id 769
[ 0.006513] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 3/1 (session 769)
[ 0.006581] [000fd316] libusb: debug [linux_get_device_address] getting address for device: 3-2 detached: 0
[ 0.006585] [000fd316] libusb: debug [linux_get_device_address] scan 3-2
[ 0.006606] [000fd316] libusb: debug [linux_get_device_address] bus=3 dev=2
[ 0.006609] [000fd316] libusb: debug [linux_enumerate_device] busnum 3 devaddr 2 session_id 770
[ 0.006611] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 3/2 (session 770)
[ 0.006635] [000fd316] libusb: debug [linux_get_parent_info] dev 0x55a5a14a4bf0 (3-2) has parent 0x55a5a14a6340 (usb3) port 2
[ 0.006688] [000fd316] libusb: debug [linux_get_device_address] getting address for device: usb4 detached: 0
[ 0.006690] [000fd316] libusb: debug [linux_get_device_address] scan usb4
[ 0.006711] [000fd316] libusb: debug [linux_get_device_address] bus=4 dev=1
[ 0.006715] [000fd316] libusb: debug [linux_enumerate_device] busnum 4 devaddr 1 session_id 1025
[ 0.006717] [000fd316] libusb: debug [linux_enumerate_device] allocating new device for 4/1 (session 1025)
[ 0.078059] [000fd316] libusb: debug [libusb_get_device_list]  
[ 0.078087] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078090] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078093] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078097] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078100] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078102] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078107] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078110] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078114] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078116] [000fd316] libusb: debug [libusb_get_device_descriptor]  
[ 0.078124] [000fd316] libusb: debug [libusb_open] open 1.16
[ 0.078151] [000fd316] libusb: debug [usbi_add_event_source] add fd 24 events 4
[ 0.078156] [000fd316] libusb: debug [libusb_claim_interface] interface 0
[ 0.078459] [000fd316] libusb: debug [libusb_submit_transfer] transfer 0x55a5a1a813f0
[ 0.078469] [000fd316] libusb: debug [add_to_flying_list] arm timer for timeout in 1000ms (first in line)
[ 0.078495] [000fd316] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.078498] [000fd316] libusb: debug [handle_events] event sources modified, reallocating event data
[ 0.078503] [000fd316] libusb: debug [usbi_wait_for_events] poll() 3 fds with timeout in 60000ms
[ 0.078837] [000fd316] libusb: debug [usbi_wait_for_events] poll() returned 1
[ 0.078847] [000fd316] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=4
[ 0.078851] [000fd316] libusb: debug [handle_control_completion] handling completion status 0
[ 0.078855] [000fd316] libusb: debug [arm_timer_for_next_timeout] no timeouts, disarming timer
[ 0.078860] [000fd316] libusb: debug [usbi_handle_transfer_completion] transfer 0x55a5a1a813f0 has callback 0x7fd1d1679c90
[ 0.078863] [000fd316] libusb: debug [sync_transfer_cb] actual_length=4
[ 0.078869] [000fd316] libusb: debug [libusb_free_transfer] transfer 0x55a5a1a813f0
[ 0.078873] [000fd316] libusb: debug [libusb_submit_transfer] transfer 0x55a5a1a814e0
[ 0.078877] [000fd316] libusb: debug [add_to_flying_list] arm timer for timeout in 1000ms (first in line)
[ 0.078887] [000fd316] libusb: debug [libusb_handle_events_timeout_completed] doing our own event handling
[ 0.078890] [000fd316] libusb: debug [usbi_wait_for_events] poll() 3 fds with timeout in 60000ms
[ 0.079202] [000fd316] libusb: debug [usbi_wait_for_events] poll() returned 1
[ 0.079211] [000fd316] libusb: debug [reap_for_handle] urb type=2 status=0 transferred=56
[ 0.079214] [000fd316] libusb: debug [handle_control_completion] handling completion status 0
[ 0.079217] [000fd316] libusb: debug [arm_timer_for_next_timeout] no timeouts, disarming timer
[ 0.079221] [000fd316] libusb: debug [usbi_handle_transfer_completion] transfer 0x55a5a1a814e0 has callback 0x7fd1d1679c90
[ 0.079225] [000fd316] libusb: debug [sync_transfer_cb] actual_length=56
[ 0.079228] [000fd316] libusb: debug [libusb_free_transfer] transfer 0x55a5a1a814e0
[ 0.079254] [000fd316] libusb: debug [libusb_submit_transfer] transfer 0x55a5a1a81720
[ 0.079258] [000fd316] libusb: debug [add_to_flying_list] arm timer for timeout in 500ms (first in line)
[ 0.079263] [000fd316] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 64
[ 0.079268] [000fd316] libusb: error [submit_bulk_transfer] submiturb failed, errno=2
[ 0.079272] [000fd316] libusb: debug [submit_bulk_transfer] first URB failed, easy peasy
[ 0.079275] [000fd316] libusb: debug [arm_timer_for_next_timeout] no timeouts, disarming timer
[ 0.079279] [000fd316] libusb: debug [libusb_free_transfer] transfer 0x55a5a1a81720
ERROR:  Input/Output Error
``

@offa
Copy link
Owner

offa commented Feb 27, 2024

That's a different error than expected. Do you get this error each time?

@callmemagnus
Copy link
Author

callmemagnus commented Feb 27, 2024

No. If I start the application, I get the IO Error.
If I then use the "Connect" entry in the menu, I get the following error:

...
[ 0.074970] [0019426b] libusb: debug [add_to_flying_list] arm timer for timeout in 500ms (first in line)
[ 0.074980] [0019426b] libusb: debug [submit_bulk_transfer] need 1 urbs for new transfer with length 64
[ 0.074989] [0019426b] libusb: error [submit_bulk_transfer] submiturb failed, errno=2
[ 0.074994] [0019426b] libusb: debug [submit_bulk_transfer] first URB failed, easy peasy
[ 0.075001] [0019426b] libusb: debug [arm_timer_for_next_timeout] no timeouts, disarming timer
[ 0.075010] [0019426b] libusb: debug [libusb_free_transfer] transfer 0x562bfbe01c70
ERROR:  Input/Output Error
[ 3.716230] [0019426b] libusb: debug [libusb_get_device_list]  
[ 3.716255] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716259] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716261] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716265] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716267] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716271] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716275] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716278] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716282] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716286] [0019426b] libusb: debug [libusb_get_device_descriptor]  
[ 3.716293] [0019426b] libusb: debug [libusb_open] open 1.18
[ 3.716327] [0019426b] libusb: debug [usbi_add_event_source] add fd 27 events 4
[ 3.716331] [0019426b] libusb: debug [libusb_claim_interface] interface 0
[ 3.716361] [0019426b] libusb: debug [libusb_release_interface] interface 0
[ 3.716367] [0019426b] libusb: debug [libusb_close]  
[ 3.716371] [0019426b] libusb: debug [usbi_remove_event_source] remove fd 27
ERROR:  Resource busy

@offa
Copy link
Owner

offa commented Feb 28, 2024

This might be an indication of a different protocol. Usually it should fail with some kind of 'invalid id', not on USB writing.

@callmemagnus
Copy link
Author

That is sad news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants