Open wdog opened 6 years ago
sorry I forgot to write VIP/PID in the script, but now i get another error
[Errno 16] Resource busy
do i need to change other things?
VID = 0x0416
PID = 0x5555
ENDPOINT_IN = 0x81
ENDPOINT_OUT = 0x02
Hi,
I am seeing the same issue with the ammoon nano looper AP-09.
Is there any diagnostic tools I could run to provide more information?
Hi I have no idea about what's going on. 😄
Can you suggest me some tool to use or check to perform?
this i what i've discovered:
print(self.dev)
DEVICE ID 0416:5555 on Bus 001 Address 005 =================
bLength : 0x12 (18 bytes)
bDescriptorType : 0x1 Device
bcdUSB : 0x200 USB 2.0
bDeviceClass : 0x0 Specified at interface
bDeviceSubClass : 0x0
bDeviceProtocol : 0x0
bMaxPacketSize0 : 0x8 (8 bytes)
idVendor : 0x0416
idProduct : 0x5555
bcdDevice : 0x1 Device 0.01
iManufacturer : 0x1 Rowin
iProduct : 0x2 DFU̒
iSerialNumber : 0x0
bNumConfigurations : 0x1
CONFIGURATION 1: 64 mA ===================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x2 Configuration
wTotalLength : 0x65 (101 bytes)
bNumInterfaces : 0x2
bConfigurationValue : 0x1
iConfiguration : 0x0
bmAttributes : 0x80 Bus Powered
bMaxPower : 0x20 (64 mA)
INTERFACE 0: Audio =====================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x0
bAlternateSetting : 0x0
bNumEndpoints : 0x0
bInterfaceClass : 0x1 Audio
bInterfaceSubClass : 0x1
bInterfaceProtocol : 0x0
iInterface : 0x3 DFU-Midi
INTERFACE 1: Audio =====================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x1
bAlternateSetting : 0x0
bNumEndpoints : 0x2
bInterfaceClass : 0x1 Audio
bInterfaceSubClass : 0x3
bInterfaceProtocol : 0x0
iInterface : 0x3 DFU-Midi
ENDPOINT 0x81: Bulk IN ===============================
bLength : 0x9 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x81 IN
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x0
ENDPOINT 0x2: Bulk OUT ===============================
bLength : 0x9 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x2 OUT
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x0
so i changed the values of VID PID and ENDPOINT_IN ENDPOINT_OUT
Sorry, I missed this bug report, somehow I didn't get notified by Github. I will have a look in the following days.
I also get Error 16 device busy with the ammon looper AP-09. Thanks for the help.
Regarding the "device busy" error, is currently something else on your systems accessing the device?
Can you please check with lsof | grep dev.*usb
?
And interesting, according to @wdog's device information, the ammoon looper exports two audio interfaces, while my Harley Benton looper announces a mass storage interface (though it's not accessible as mass storage device).
DEVICE ID 0483:572a on Bus 001 Address 026 =================
bLength : 0x12 (18 bytes)
bDescriptorType : 0x1 Device
bcdUSB : 0x200 USB 2.0
bDeviceClass : 0x0 Specified at interface
bDeviceSubClass : 0x0
bDeviceProtocol : 0x0
bMaxPacketSize0 : 0x40 (64 bytes)
idVendor : 0x0483
idProduct : 0x572a
bcdDevice : 0x200 Device 2.0
iManufacturer : 0x1 STMicroelectronics
iProduct : 0x2 STM32 Mass Storage
iSerialNumber : 0x3 00000000001A
bNumConfigurations : 0x1
CONFIGURATION 1: 100 mA ==================================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x2 Configuration
wTotalLength : 0x20 (32 bytes)
bNumInterfaces : 0x1
bConfigurationValue : 0x1
iConfiguration : 0x4 MSC Config
bmAttributes : 0xc0 Self Powered
bMaxPower : 0x32 (100 mA)
INTERFACE 0: Mass Storage ==============================
bLength : 0x9 (9 bytes)
bDescriptorType : 0x4 Interface
bInterfaceNumber : 0x0
bAlternateSetting : 0x0
bNumEndpoints : 0x2
bInterfaceClass : 0x8 Mass Storage
bInterfaceSubClass : 0x6
bInterfaceProtocol : 0x50
iInterface : 0x5 MSC Interface
ENDPOINT 0x81: Bulk IN ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x81 IN
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x0
ENDPOINT 0x1: Bulk OUT ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x1 OUT
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x0
So it could be that the protocol differs as well. Though I'm a bit surprised, as the Windows tools for these loopers look nearly identical. Does anyone have a Windows machine/VM and could capture a few sample transfers with Wireshark? Otherwise I'll try to get one of those ammoon loopers to play around with.
according to the self.dev
I changed the values in the loopertrx.py
to
VID = 0x0416
PID = 0x5555
ENDPOINT_IN = 0x81
ENDPOINT_OUT = 0x02
now I have a simple [Errno 110] Operation timed out
or [Errno 16] Resource busy
random
can someone tell me if I need to change also this part? ( or explain their meaning )
COMMAND_SIZE = 0xfe
COMMAND_DATA = 0xff
@reinerh sorry I do not have a windows machine to test but I'll try to ask to some friends
If I exec export PYUSB_DEBUG=debug
before launching the command I can retrieve more information.
Please be patient I'm learning...
@wdog COMMAND_SIZE and COMMAND_DATA should not be changed. They are part of the protocol while transmitting data. But maybe your looper uses a different protocol, then more parts need to be changed. A capture of the USB traffic would be helpful to analyze this.
Okay, I also have an ammoon looper now. It looks like they are producing different hardware since July 2017, and they also require new software for transferring files.
An example is here: https://www.donnerdeal.com/pages/download Their legacy software supports devices produced before July 2017, while for newer devices the newer software is required. And on a Windows VM the old software is indeed no longer working with my recently bought ammoon looper, while the new software works well.
Looks like I need to figure out their new protocol as well...
Hi there, I also have an ammoon looper (actually I have 2 at my disposal right now), just wanted to ask if there's still a chance of the script handling these newer loopers? I can offer help, but I don't know anything about coding.. Thanks Worel
I just got one of these new-model pedals as well. Here's the sequence of operations I performed:
https://www.dropbox.com/s/o0a7mh6jdipi26t/ammoon-nano-looper.pcapng?dl=0
Edit: the "delete" operation in the UI definitely doesn't work, and also the UI only lists the first recording (first "layer" of the loop). If you're able to list and download all tracks, this seems to be legit multitrack and not just overdubbing.
This also looks like it's using USB-MIDI, and shows up in the OSX Audio MIDI Setup; but doesn't appear to do anything standard and just use some sysex commands.
I've also tried to get a pcap of the usb traffic but the LooperSuite1.7 doesn't work with my new buyed looper. But the looper is recognized as an midi device via "amidi --dump -l ".
Ok LooperSuite1.7 doesn't work with Windows 7 properly but it works with Windows 10
any news lately?
Not on my side. I don't have the need for editing the contents of the looper anymore.
Linux makes it available as /dev/midi1 but the wrong interface seems to be selected. Otherwise it would be possible to write to midi1 and read from it and try to replay the Wireshark recordings Any ideas?
@reinerh any update?
Can someone share the legacy version of LooperSuite? The only one version I can get is V1.7, which doesn't work on my looper3.
Can someone share the legacy version of LooperSuite? The only one version I can get is V1.7, which doesn't work on my looper3. I have found it on https://www.donnerdeal.com/pages/looper, the link is https://www.dropbox.com/s/iimlk7m3yi7d9wq/Donner_V9.0.exe?dl=0
@wdog Obviously a very old thread/bug report.... but if you're still wanting to work on this check out bug #6 as I have made some progress...
Does anyone have a firmware for AP-09? I want to try to upload it using LooperSuite v1.7 because my looper stopped working after importing a song. It shows that memory is empty, but when I am trying to record something it only lights red and that is all :(
The script is giving me a DEVICE NOT FOUND, my device is ammon looper AP-09
after I insert the usb cable i get this problem
can you help me? thanks