sending commands to sonos

Apr 28, 2009 at 8:42 AM
Edited Apr 28, 2009 at 8:45 AM
HI

i hope you can help
i'm trying to integrate sonos control with the home automation system i have.
i believe you can send basic play,pause,stop,volume comands to the sonos players through http
i have been going through the code for your service and i see when you want to pause or change the volume you use the invokeAction in the upnp.cs file
but how do you send the command?
and what does the command look like?
is it something like "http://xxx.xxx.xxx.xxx:1400/volume=50"
or setting a value to an xml file?

can you please help with this?
or tell me which of the .cs files you use to send messages to the sonos players

thanks in advance
Coordinator
May 4, 2009 at 3:48 AM
I'm using the Windows UPnP client stack, that particular method is documented here: http://msdn.microsoft.com/en-us/library/aa382237(VS.85).aspx
May 4, 2009 at 4:41 AM
Hi enigmatic

thanks for the reply
i looked at the msdn forums and that is exactly what i needed.
thanks for the help
Coordinator
May 4, 2009 at 6:12 AM
no problem, sorry for the late reply - just moved and had some downtime while getting set up again.
Apr 19, 2010 at 7:08 PM

How do you download this SDK? Been searching for a long time trying to find upnp.dll, and can't.

Coordinator
Apr 20, 2010 at 3:15 AM
djMax wrote:

How do you download this SDK? Been searching for a long time trying to find upnp.dll, and can't.

It should come with Windows, at least with XP, Vista and Win7, not sure about the server variants. Look in the Windows\System32 directory.