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

Surround Sound Mode #461

Closed
wharzhee opened this issue Jan 1, 2017 · 11 comments · Fixed by #780
Closed

Surround Sound Mode #461

wharzhee opened this issue Jan 1, 2017 · 11 comments · Fixed by #780

Comments

@wharzhee
Copy link

wharzhee commented Jan 1, 2017

I have a playbar with a connect:amp configured as surround rear speakers.

[surround setup: https://sonos.custhelp.com/app/answers/detail/a_id/2248]
[as you can see from the link, it's quite tedious to configure them as surround rear speakers, and when I'm not watching any movies, to set them back as normal separate speakers.

I was wondering if it is possible to toggle surround sound mode?

@DPH
Copy link
Member

DPH commented Jan 2, 2017

Hi, very interesting to find this surround sound set up. I didn't know it existed. Are your sonos units Ethernet wired? I tried it on mine (but without the Ethernet wire) and it works but no sound from the surround speakers. Will have to run a cable to try it with Ethernet.

To your question - as the set up is a web form post this should be easy be replicated in code. I am not yet clear if there are any consequences of switching it on and off.

Another question is why do you need to switch or is it the connect:amp is too quite?

Cheers David

@wharzhee
Copy link
Author

wharzhee commented Jan 2, 2017

yes my playbar and connect:amp are hardwired. [I believe you need it hardwired]

the reason why I asked is because I set the connect:amp as surround rear when I watch movies (5.1 channels), but when I play music in the whole house, I would like to use my connect:amp separately (not together with the playbar)

Plus, there's no easy way to set the surround rear mode, as it can only be set via the website and not via the sonos app.

@ghcs27
Copy link
Member

ghcs27 commented Nov 18, 2017

I'd suggest you use Wireshark to capture the command packets:
Complete the setup procedure while Wireshark is running and examine the packets exchanged with the player. See also this wiki page.
With this information, you might be able to write a program which sends the command for joining/unjoining.

@ghcs27
Copy link
Member

ghcs27 commented Feb 20, 2018

If anyone has a surround setup to test with and can capture the packets, please post the results here.

@ghcs27
Copy link
Member

ghcs27 commented Nov 9, 2018

PR for this is now at #646.
@wharzhee, can you please test if it works for you?

@rytilahti
Copy link
Contributor

Separating the speakers from the surround setup is more complicated than simply toggling whether they are used or not (as done in the linked PR). Here are the commands for creating a group and then disbanding it:

Endpoint: /DeviceProperties/Control

<s:Body>
<u:AddHTSatellite
    xmlns:u="urn:schemas-upnp-org:service:DeviceProperties:1">
    <HTSatChanMapSet>
        RINCON_<play1 left>:LF,RF;RINCON_<play right>:RR;RINCON_<beam>:LR
        </HTSatChanMapSet>
    </u:AddHTSatellite>
</s:Body>

<s:Body>
<u:RemoveHTSatellite
    xmlns:u="urn:schemas-upnp-org:service:DeviceProperties:1">
    <SatRoomUUID>
        RINCON_<beam>
        </SatRoomUUID>
    </u:RemoveHTSatellite>
</s:Body>

When doing this with the app, you will need to manually confirm the location of one of the speakers, it may be possible to go around that limitation by directly using the HTSatChanMapSet but I never tested it.

@danieledge
Copy link

Does this capability work ? Looking to be able to remove and reinstate surrounds

@pwt
Copy link
Contributor

pwt commented May 16, 2021

Does this capability work ? Looking to be able to remove and reinstate surrounds

Not at the moment. There's a couple of PRs targeting this feature (#646 and #780), but neither is complete.

@rytilahti
Copy link
Contributor

The first PR adds controls only for the "Music Playback" option seen at https://support.sonos.com/s/article/4804?language=en_US . The latter PR extends to cover all other options (besides reset) listed on that page, including toggling surround on/off like you can do in the app.

Neither do allow real grouping/ungrouping of devices, the payloads I posted above could be used to do that.

@rytilahti
Copy link
Contributor

I did some testing on grouping/ungrouping devices for a surround setup I mentioned in the previous comment, but from the looks of it, disbanding devices causes you to lose the trueplay tuning with no obvious way to reinstate it...

As that doesn't work for my personal use case where my soundbar is sometimes offline and/or I just want to control the other speakers separately, I'm not going to pursue that effort myself any further. In case someone is interested in getting that integrated to this library, I created #862 that could be used as a starting point.

@pwt
Copy link
Contributor

pwt commented Oct 11, 2021

I did some testing on grouping/ungrouping devices for a surround setup I mentioned in the previous comment, but from the looks of it, disbanding devices causes you to lose the trueplay tuning with no obvious way to reinstate it...

As that doesn't work for my personal use case where my soundbar is sometimes offline and/or I just want to control the other speakers separately, I'm not going to pursue that effort myself any further. In case someone is interested in getting that integrated to this library, I created #862 that could be used as a starting point.

Thanks for investigating this. The result is consistent with stereo pairing: the action of pairing or unpairing will erase any TruePlay settings.

@pwt pwt closed this as completed in #780 Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants