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

[onkyo] Command LISTEN_MODE_QUERY (LMDQSTN) causes sound interruption Onkyo TX8050 #1534

Closed
dvolochnik opened this issue Dec 6, 2016 · 3 comments

Comments

@dvolochnik
Copy link

dvolochnik commented Dec 6, 2016

I've tested onkyo binding with my TX8050 receiver and as soon as Onkyo Thing was online, the receiver started to have short sounds interruptions approximately every second. Further investigation showed, that the interruptions happened every time right after the binding send status query to the receiver.

After few experiments, it was clear, that problem is caused by
sendCommand(EiscpCommandRef.LISTEN_MODE_QUERY)
command in the checkStatus() function.

So easy and dirty solution was to comment out problematic row as following:
`private void checkStatus() {

    sendCommand(EiscpCommandRef.POWER_QUERY);
    sendCommand(EiscpCommandRef.VOLUME_QUERY);
    sendCommand(EiscpCommandRef.SOURCE_QUERY);
    sendCommand(EiscpCommandRef.MUTE_QUERY);
    sendCommand(EiscpCommandRef.ZONE2_POWER_QUERY);
    sendCommand(EiscpCommandRef.ZONE2_VOLUME_QUERY);
    sendCommand(EiscpCommandRef.ZONE2_SOURCE_QUERY);
    sendCommand(EiscpCommandRef.ZONE2_MUTE_QUERY);

    // sendCommand(EiscpCommandRef.LISTEN_MODE_QUERY);

    if (connection != null && connection.isConnected()) {
        updateStatus(ThingStatus.ONLINE);
    } else {
        updateStatus(ThingStatus.OFFLINE);
    }
}`

After that the problem was gone.

Most likely, it is a model specific problem which exists only for TX8050 receiver, but, anyway, is there any workaround, or, probably, somebody can create one?

@marcelrv
Copy link
Contributor

I think currently there is no workaround.
we need to ask @pail23 what is the purpose of the frequent polling of status, as while being connected seems all updates are already send, hence the polling may not be needed at all (or very limited)

Alternatively, we could make the polling frequency a configuration option, so in your case you can set it to very slow/disable

marcelrv added a commit to marcelrv/openhab-addons that referenced this issue Dec 26, 2016
@Cossey
Copy link
Contributor

Cossey commented Jan 4, 2019

It doesn't look like @dvolochnik is active on GitHub anymore.

The polling is now defaulted to 0 in current versions and looking at the code this problem should only appear for a brief moment when openHab connects to the device.

As noted by @marcelrv the protocol does send unsolicited updates when values change so polling is probably there for those receivers that have unstable EISCP/networking implementations.

@cweitkamp can you get someone to close this issue please?

@cweitkamp
Copy link
Contributor

@Cossey Yes, I can. Thanks for cleaning up the Onkyo issues.

Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Aug 12, 2023
Typo in the "Properties Tab" section. represneted should be represented.
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

4 participants