Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting input type on KH120 II #5

Open
Boita86 opened this issue May 1, 2024 · 5 comments
Open

Setting input type on KH120 II #5

Boita86 opened this issue May 1, 2024 · 5 comments

Comments

@Boita86
Copy link

Boita86 commented May 1, 2024

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
Copy link
Owner

schwinn commented May 2, 2024

Hi,

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

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

@Boita86
Copy link
Author

Boita86 commented May 2, 2024

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
Copy link
Owner

schwinn commented May 2, 2024

please try this:

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

@Boita86
Copy link
Author

Boita86 commented May 2, 2024

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

Thank you!

@schwinn
Copy link
Owner

schwinn commented May 2, 2024

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

Don't forget to save the settings.

khtool.py -i 12 --save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants