openAV-Ctlra icon indicating copy to clipboard operation
openAV-Ctlra copied to clipboard

Support for Kontrol S4 MK3

Open acolombier opened this issue 2 years ago • 4 comments

Hi,

I have recently acquired these gears and I am looking for a way to drive the screens on that device. I have performed a partial reverse engineering of the communication to the screen class (bulk endpoint). The controller also has an HID and an audio class, but I'm not expecting this part to be the troubling one.

I'd be happy to help with adding support for the device, but sadly I have no experience at all with libusb. I'd be happy to share some Wireshark traces tho, perhaps someone could give me guidelines on how to get something started?

acolombier avatar Feb 19 '23 02:02 acolombier

Hi,

Cool yes, the screens on the S4 Mk3 are the same as the "mk2/mk3" generation of devices, so almost all of the existing code will work with them. There is a bit of "playing" with the USB device ID and descriptors required, and some adjustments to the screen-sizes in pixels (they're 480x272 from memory... I had them working before, as I also had access to this device for a while!)

No need for wire-shark traces, the info for supporting new (kind-of-related-to-existing-devices) hardware is typically all available in lsusb output. As i've worked with that device before (and have access to it..) there's no need here!

As next steps, the question is more about some C coding experience, and a bit of enthusiasm to try things out. (its very safe to play with USB devices, just stay away from writing to the DFU (Device Firmware Update) USB endpoint, and its ~ impossible to brick it!).

Regards, -Harry

harryhaaren avatar Feb 19 '23 19:02 harryhaaren

Thanks for your input! I just needed to hear that there wasn't any risk on messing up the device!

From my USB sniffing, I had already figured out the screen was 320x240.

I just got something working, but that only includes the screens since I am not planning on using the HID capability of Ctlra.

I will try to clean up the implementation and submit a draft PR within the next few days :)

IMG20230220013825

acolombier avatar Feb 20 '23 01:02 acolombier