shaduzlabs / cabl

Controller ABstraction Layer
MIT License
128 stars 36 forks source link

Push 2 Display works, input doesn't #19

Open DatanoiseTV opened 2 years ago

DatanoiseTV commented 2 years ago

I have tested cabl with the maschine mk1 (which works great) and with the Ableton Push 2. On the Push 2, I am able to draw to the display, but don't receive any data.

I already found out that the SysEx ID Request in DriverMidi.cpp was wrong and corrected it to:

 std::vector<unsigned char> sysExIdentity = {0xF0, 0x7E, 0x01, 0x06, 0x01, 0xF7};

After that, the MIDI driver successfully receives a device response, but still the controls don't work.

Here is a debug log with added info

16:40:42: Controller Abstraction Library v. 0.9.7
19:43:37: [LibUSB] initialization
17:00:44: [Client] Client
Type 'q' and hit ENTER to quit.
19:43:37: [HIDAPI] initialization (0)
19:43:37: [HIDAPI] enumerate
17:01:45: [DriverMIDI] initialization
17:01:45: [DriverMIDI] enumerate
17:01:45: [DriverMIDI] out: Midi Through:Midi Through Port-0 14:0 ->0
17:01:45: [DriverMIDI] in: Midi Through:Midi Through Port-0 14:0 ->0
[DriverMIDI] pending future: 1
17:01:45: [DriverMIDI] out: Ableton Push 2:Ableton Push 2 Live Port 20:0 ->1
17:01:45: [DriverMIDI] in: Ableton Push 2:Ableton Push 2 Live Port 20:0 ->1
[DriverMIDI] pending future: 2
17:01:45: [DriverMIDI] out: Ableton Push 2:Ableton Push 2 User Port 20:1 ->2
17:01:45: [DriverMIDI] in: Ableton Push 2:Ableton Push 2 User Port 20:1 ->2
[DriverMIDI] pending future: 3
17:01:45: [DriverMIDI] found device: 0:8477
17:01:45: [DriverMIDI] found device: 0:8477
17:01:45: [DriverMIDI] identity reply timeout on port #0
19:43:37: [LibUSB] enumerate
....
19:43:37: [LibUSB] enumerate: ()
19:43:37: [LibUSB] enumerate: Ableton Push 2(Ableton AG)
19:43:37: [LibUSB] enumerate: xHCI Host Controller(Linux 5.15.0-41-lowlatency xhci-hcd) with S/N "0000:00:14.0"
16:40:42: [Coordinator] scan: new device found via main driver
16:40:42: [Coordinator]: The devices list has changed
17:00:44: [Client] devicesListChanged : 1 devices
19:43:37: [LibUSB] connecting to 10626:6503:
19:43:37: [LibUSB] CONNECTED to 10626:6503:
Driver type is 2
Device handle is open
Creating device17:00:44: [Client] onInitDevice
Allocated 307200 bytes for display buffer
Got 0 Text Displays
Got 1 Display(s) with total resolution 960 x 160
- Display 0: 960 x 160