Receive sysex response?

Hello,
From discussions in the past I understand that it is not possible to receive (stray) sysex messages. That is not what I am looking for either.

But is it possible to receive a reply to a sysex message?
Example from the documentation of the Launchpad Mini Mk3:

Device Inquiry message
The Launchpad Mini [MK3] responds to the Universal Device Inquiry Sysex message, which can be used to identify the device. This exchange is as follows:

Host => Launchpad Mini [MK3]:
Hex: F0h 7Eh 7Fh 06h 01h F7h
Dec: 240 126 127 6 1 247

Launchpad Mini [MK3] => Host (Application):
Hex: F0h 7Eh 00h 06h 02h 00h 20h 29h 13h 01h 00h 00h <app_version> F7h
Dec: 240 126 0 6 2 0 32 41 19 1 0 0 <app_version> 247

I want to do something similar for my LPD8, query the current settings. Is that somehow possible? How do I get to the reply data?

There seems to be no such thing as a lib_zyncore.dev_receive_midi_event(self.idev_in)

Kind regards,
Hans.

1 Like

Hi @HansR !

You can find good examples of how to send and receive SysEx responses from ctrldev drivers in current drivers like:

The more complete example is the new APC40 driver, that includes Universal Device Inquiry code, but it’s only available in vangelis branch:

Regards,

1 Like

Thanks @jofemodo,

I tried that already but elif ev[0] == 0xF0: never gets hit. I didn’t know if that was caused by the device not responding or this clause not working.

I still don’t actually know what the cause is, but now I can search more specifically.

Hello @HansR

If you have a PC with windows you can use Midi-OX to see if your device responds to universal device inquiry

For my LP mini MK3 I get

If you are on other OS there are probably tools that can make the same job

Hope it can help

Alain

Hi @AL1-1956

Thanks for the tip, the device responds to universal device inquiry,

For this device and this situation I need the current device settings, and change them so the bottom 4 knobs are assigned the right CC values while the rest of the settings remain intact.

The LPD8 is not very versatile in this situation, you can ask all parameters at once or you can set all parameters at once.

I still have some problems sending more than one sysex and processing a respons. This may be the right time to start a separate thread.

Hello @HansR

What I do in this kind of situation is a try and error process

I first dump the initial setting in a sysex file and then try to identify where values in hexa are gathered

Since I know what initial values are it is not very hard when I think I have found the right place with a binary editor like “Neo” I change this value and dump back the modified file to the device and see if I have done right and what button or pot has changed his CCnumber.

Just saying …

Alain

I’m lucky, I found the complete structure:

Problem is not the content, but timing I’m afraid. But that is all part of the hobby :grin:

1 Like

I forgot to mention that the device inquiry wont work in Oram. You have to use Vangelis for this to work.

Regards

1 Like