schwinn / khtool

Tool to query or change settings of Neumann KH DSP speakers
MIT License
10 stars 2 forks source link

Setting input type on KH120 II #5

Open Boita86 opened 2 months ago

Boita86 commented 2 months ago

Hi I managed to query the input type used on my KH120, but I can't find the command to change it from Analog to Digital. Any help?

KH

schwinn commented 2 months ago

Hi,

please query our speaker with the expert command from below. This should show the correct syntax.

{"osc":{"limits":[{"audio":{"in":{"interface":null}}}]}}

Boita86 commented 2 months ago

Partial success! I browsed the Sennheiser SSC document but couldn't find the correct way to send the argument...

C:\KH\khtool-main>python khtool.py -i 12 --expert {\"osc\":{\"limits\":[{\"audio\":{\"in\":{\"interface\":null}}}]}}
Used Device:  Right
IPv6 address: fe80::2a36:38ff:fe61:13e8
{"osc":{"limits":[{"audio":{"in":{"interface":[{"type":"String","writeable":true,"option":["ANALOG ONLY","DIGITAL ONLY","DIGITAL DISCARDS ANALOG"],"subscr":true}]}}}]}}

Used Device:  Left
IPv6 address: fe80::2a36:38ff:fe61:12ae
{"osc":{"limits":[{"audio":{"in":{"interface":[{"type":"String","writeable":true,"option":["ANALOG ONLY","DIGITAL ONLY","DIGITAL DISCARDS ANALOG"],"subscr":true}]}}}]}}

C:\KH\khtool-main>python khtool.py -i 12 --expert {\"audio\":{\"in\":{\"interface\":'DIGITAL ONLY'}}}
usage: khtool.py [-h] [--scan] [-q] [--backup BACKUP] [--restore RESTORE] [--comment COMMENT] [--save]
                 [--brightness BRIGHTNESS] [--delay DELAY] [--dimm DIMM] [--level LEVEL] [--mute] [--unmute]
                 [--expert EXPERT] -i INTERFACE [-t {all,0,1,2,3,4,5,6,7,8}] [-v]
khtool.py: error: unrecognized arguments: ONLY'}}}

C:\KH\khtool-main>python khtool.py -i 12 --expert {\"audio\":{\"in\":{\"interface\":\"DIGITAL ONLY\"}}}
usage: khtool.py [-h] [--scan] [-q] [--backup BACKUP] [--restore RESTORE] [--comment COMMENT] [--save]
                 [--brightness BRIGHTNESS] [--delay DELAY] [--dimm DIMM] [--level LEVEL] [--mute] [--unmute]
                 [--expert EXPERT] -i INTERFACE [-t {all,0,1,2,3,4,5,6,7,8}] [-v]
khtool.py: error: unrecognized arguments: ONLY"}}}

C:\KH\khtool-main>python khtool.py -i 12 --expert {\"audio\":{\"in\":{\"interface\":DIGITAL_ONLY}}}
Used Device:  Right
IPv6 address: fe80::2a36:38ff:fe61:13e8
{"osc":{"error":[400,{"desc":"message not understood"}]}}

Used Device:  Left
IPv6 address: fe80::2a36:38ff:fe61:12ae
{"osc":{"error":[400,{"desc":"message not understood"}]}}
schwinn commented 2 months ago

please try this:

khtool.py -i 12 --expert "{\"audio\":{\"in\":{\"interface\":\"DIGITAL ONLY\"}}}"

Boita86 commented 2 months ago

That just worked! Should I just always put the ".../..." around an expert command?

Thank you!

schwinn commented 2 months ago

Yes, it's best to put quotation marks around.

Don't forget to save the settings.

khtool.py -i 12 --save