Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
device.xml is written with incorrect domain name
30-08-2011, 09:05 PM
Post: #1
device.xml is written with incorrect domain name
When the device stack writes the device.xml file, it puts the wrong domain name into the <deviceType> field. This field should start with urn:schemas-upnp-org:device: but instead it is written as urn:upnp.org:device: and this causes some control points to fail to discover the device.

The problem is caused by some incorrect code in the DviProtocolUpnpDeviceXmlWriter::Write method in DviProtocolUpnp.cpp. The following lines:
Code:
Brn upnpDomain = iDeviceUpnp.Domain();
Bwh canonicalDomain(upnpDomain.Bytes() + 10);
Ssdp::UpnpDomainToCanonical(upnpDomain, canonicalDomain);
iWriter.Write(canonicalDomain);
should be replaced with:
Code:
Brn canonicalDomain = iDeviceUpnp.Domain();
Bwh upnpDomain(canonicalDomain.Bytes() + 10);
Ssdp::CanonicalDomainToUpnp(canonicalDomain, upnpDomain);
iWriter.Write(upnpDomain);
Find all posts by this user


Messages In This Thread
device.xml is written with incorrect domain name - simoncn - 30-08-2011 09:05 PM

Forum Jump: