schwinn / khtool

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

problem: authorisation needed #6

Open perlindgren opened 6 months ago

perlindgren commented 6 months ago

Hi

First of all, thanks for the effort of the khtool.

My setup:

Arch linux, python in venv, installed tools according to insructions.

2x kh80, ipv6 router between computer and speakers.

Problem:

Detection and queries work as intended (i believe).

For each speaker, it reports:

{"device":{"identity":{"version":"1_3_1"}}}

However when trying to set e.g. logo brightness I get:

python3 ./khtool.py -i eno1 --brightness 50
Used Device:  Left
IPv6 address: fe80::2a36:38ff:fe60:b3d7
{"osc":{"error":[{"ui":{"logo":{"brightness":[401,{"desc":"authorisation needed"}]}}}]}}

Used Device:  Right
IPv6 address: fe80::2a36:38ff:fe60:b34c
{"osc":{"error":[{"ui":{"logo":{"brightness":[401,{"desc":"authorisation needed"}]}}}]}}

Reading the docs (TI_1109_v2.2_Sennheiser_Sound_Control_Protocol_Digital_6000_EN.pdf)

9.4.2 401 Unauthorized
Error code response for missing or invalid authentication token. The request requires user authenti-
cation. If the request already included Authorization credentials, then the 401 response indicates that
authorization has been refused for those credentials.

Comparing to your example query it seems that the version (1_3_1) is the same, so not sure what's going on.

Any ideas.

/Per

schwinn commented 5 months ago

Is the network mode selected on the switch on the back?

perlindgren commented 5 months ago

That did the trick, thank you very much, now I will hack the speaker :)