Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Check to change "/status/zp" by "/device_description.xml" if possible #23

Open
vmichalak opened this issue Nov 13, 2017 · 2 comments
Open

Comments

@vmichalak
Copy link
Owner

According to slack discussion with @mguntli, it seems possible to replace call to "/status/zp" by "/device_description.xml" which is in UPnP specification.

@mguntli
Copy link
Contributor

mguntli commented Nov 13, 2017

http://sonos-ip:1400/xml/device_description.xml

<?xml version="1.0" encoding="utf-8" ?> <root xmlns="urn:schemas-upnp-org:device-1-0"> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <device> <deviceType>urn:schemas-upnp-org:device:ZonePlayer:1</deviceType> <friendlyName>192.168.0.30 - Sonos PLAY:1</friendlyName> <manufacturer>Sonos, Inc.</manufacturer> <manufacturerURL>http://www.sonos.com</manufacturerURL> <modelNumber>S1</modelNumber> <modelDescription>Sonos PLAY:1</modelDescription> <modelName>Sonos PLAY:1</modelName> <modelURL>http://www.sonos.com/products/zoneplayers/S1</modelURL> <softwareVersion>38.9-46070</softwareVersion> <hardwareVersion>1.8.3.7-2</hardwareVersion> <serialNum>B8-E9-37-84-A4-82:5</serialNum> <UDN>uuid:RINCON_B8E93784A48201400</UDN> <iconList> <icon> <id>0</id> <mimetype>image/png</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/img/icon-S1.png</url> </icon> </iconList> <minCompatibleVersion>37.10-00000</minCompatibleVersion> <legacyCompatibleVersion>25.0-00000</legacyCompatibleVersion> <apiVersion>1.0.0</apiVersion> <minApiVersion>1.0.0</minApiVersion> <displayVersion>8.1</displayVersion> <extraVersion>OTP: </extraVersion> <roomName>Wohnzimmer</roomName> <displayName>PLAY:1</displayName> <zoneType>9</zoneType> <feature1>0x00000000</feature1> <feature2>0x00403332</feature2> <feature3>0x0001000e</feature3> <variant>0</variant> <internalSpeakerSize>5</internalSpeakerSize> <bassExtension>75.000</bassExtension> <satGainOffset>6.000</satGainOffset> <memory>128</memory> <flash>64</flash> <ampOnTime>10</ampOnTime> <retailMode>0</retailMode> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:AlarmClock:1</serviceType> <serviceId>urn:upnp-org:serviceId:AlarmClock</serviceId> <controlURL>/AlarmClock/Control</controlURL> <eventSubURL>/AlarmClock/Event</eventSubURL> <SCPDURL>/xml/AlarmClock1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:MusicServices:1</serviceType> <serviceId>urn:upnp-org:serviceId:MusicServices</serviceId> <controlURL>/MusicServices/Control</controlURL> <eventSubURL>/MusicServices/Event</eventSubURL> <SCPDURL>/xml/MusicServices1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:DeviceProperties:1</serviceType> <serviceId>urn:upnp-org:serviceId:DeviceProperties</serviceId> <controlURL>/DeviceProperties/Control</controlURL> <eventSubURL>/DeviceProperties/Event</eventSubURL> <SCPDURL>/xml/DeviceProperties1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:SystemProperties:1</serviceType> <serviceId>urn:upnp-org:serviceId:SystemProperties</serviceId> <controlURL>/SystemProperties/Control</controlURL> <eventSubURL>/SystemProperties/Event</eventSubURL> <SCPDURL>/xml/SystemProperties1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ZoneGroupTopology:1</serviceType> <serviceId>urn:upnp-org:serviceId:ZoneGroupTopology</serviceId> <controlURL>/ZoneGroupTopology/Control</controlURL> <eventSubURL>/ZoneGroupTopology/Event</eventSubURL> <SCPDURL>/xml/ZoneGroupTopology1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:GroupManagement:1</serviceType> <serviceId>urn:upnp-org:serviceId:GroupManagement</serviceId> <controlURL>/GroupManagement/Control</controlURL> <eventSubURL>/GroupManagement/Event</eventSubURL> <SCPDURL>/xml/GroupManagement1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-tencent-com:service:QPlay:1</serviceType> <serviceId>urn:tencent-com:serviceId:QPlay</serviceId> <controlURL>/QPlay/Control</controlURL> <eventSubURL>/QPlay/Event</eventSubURL> <SCPDURL>/xml/QPlay1.xml</SCPDURL> </service> </serviceList> <deviceList> <device> <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType> <friendlyName>192.168.0.30 - Sonos PLAY:1 Media Server</friendlyName> <manufacturer>Sonos, Inc.</manufacturer> <manufacturerURL>http://www.sonos.com</manufacturerURL> <modelNumber>S1</modelNumber> <modelDescription>Sonos PLAY:1 Media Server</modelDescription> <modelName>Sonos PLAY:1</modelName> <modelURL>http://www.sonos.com/products/zoneplayers/S1</modelURL> <UDN>uuid:RINCON_B8E93784A48201400_MS</UDN> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType> <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId> <controlURL>/MediaServer/ContentDirectory/Control</controlURL> <eventSubURL>/MediaServer/ContentDirectory/Event</eventSubURL> <SCPDURL>/xml/ContentDirectory1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <controlURL>/MediaServer/ConnectionManager/Control</controlURL> <eventSubURL>/MediaServer/ConnectionManager/Event</eventSubURL> <SCPDURL>/xml/ConnectionManager1.xml</SCPDURL> </service> </serviceList> </device> <device> <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType> <friendlyName>Wohnzimmer - Sonos PLAY:1 Media Renderer</friendlyName> <manufacturer>Sonos, Inc.</manufacturer> <manufacturerURL>http://www.sonos.com</manufacturerURL> <modelNumber>S1</modelNumber> <modelDescription>Sonos PLAY:1 Media Renderer</modelDescription> <modelName>Sonos PLAY:1</modelName> <modelURL>http://www.sonos.com/products/zoneplayers/S1</modelURL> <UDN>uuid:RINCON_B8E93784A48201400_MR</UDN> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType> <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId> <controlURL>/MediaRenderer/RenderingControl/Control</controlURL> <eventSubURL>/MediaRenderer/RenderingControl/Event</eventSubURL> <SCPDURL>/xml/RenderingControl1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <controlURL>/MediaRenderer/ConnectionManager/Control</controlURL> <eventSubURL>/MediaRenderer/ConnectionManager/Event</eventSubURL> <SCPDURL>/xml/ConnectionManager1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType> <serviceId>urn:upnp-org:serviceId:AVTransport</serviceId> <controlURL>/MediaRenderer/AVTransport/Control</controlURL> <eventSubURL>/MediaRenderer/AVTransport/Event</eventSubURL> <SCPDURL>/xml/AVTransport1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-sonos-com:service:Queue:1</serviceType> <serviceId>urn:sonos-com:serviceId:Queue</serviceId> <controlURL>/MediaRenderer/Queue/Control</controlURL> <eventSubURL>/MediaRenderer/Queue/Event</eventSubURL> <SCPDURL>/xml/Queue1.xml</SCPDURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:GroupRenderingControl:1</serviceType> <serviceId>urn:upnp-org:serviceId:GroupRenderingControl</serviceId> <controlURL>/MediaRenderer/GroupRenderingControl/Control</controlURL> <eventSubURL>/MediaRenderer/GroupRenderingControl/Event</eventSubURL> <SCPDURL>/xml/GroupRenderingControl1.xml</SCPDURL> </service> </serviceList> <X_Rhapsody-Extension xmlns="http://www.real.com/rhapsody/xmlns/upnp-1-0"> <deviceID>urn:rhapsody-real-com:device-id-1-0:sonos_1:RINCON_B8E93784A48201400</deviceID> <deviceCapabilities> <interactionPattern type="real-rhapsody-upnp-1-0"/> </deviceCapabilities> </X_Rhapsody-Extension> <qq:X_QPlay_SoftwareCapability xmlns:qq="http://www.tencent.com">QPlay:2</qq:X_QPlay_SoftwareCapability> <iconList> <icon> <mimetype>image/png</mimetype> <width>48</width> <height>48</height> <depth>24</depth> <url>/img/icon-S1.png</url> </icon> </iconList> </device> </deviceList> </device> </root>

@vmichalak
Copy link
Owner Author

Some informations are not on the device_description.xml for the moment (like SoftwareDate, CustomerID, Network Mask, etc...) i think it's better to stay on /status/zp as long as it works.

@vmichalak vmichalak self-assigned this Nov 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants