ZyXEL Communications P-335WT Manuel d'utilisateur Page 5

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 18
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 4
MAN: ssdp:discover
MX: 10
ST: ssdp:all
All control points are required to respond to this message by sending back a similar
message via UDP unicasting back to the device, announcing which UPnP profiles
the control point implements. For every profile it implements one message is sent:
HTTP/1.1 200 OK
CACHE-CONTROL:max-age=1800
EXT:
LOCATION:http://10.0.0.138:80/IGD.xml
SERVER:SpeedTouch 510 4.0.0.9.0 UPnP/1.0 (DG233B00011961)
ST:urn:schemas-upnp-org:service:WANPPPConnection:1
USN:uuid:UPnP-SpeedTouch510::urn:schemas-upnp-org:service:WANPPPConnection:1
The above is a slightly edited response that is sent by an Alcatel/Thomson Speed-
touch ADSL modem. Some implementations of the UPnP stack do not seem to
send responses back at all.
The response message contains a header called LOCATION, which is a URL where
a file in XML format can be downloaded which describes the services that the
control point implements. There is no default location for this file. In some control
points, such as the OvisLink MU-5000FS, a Linux/Samba based network storage
device (also available from other vendors), the LOCATION header even differs between
reboots as the port on where the webserver runs is dynamically assigned.
At a regular interval control points have to send a message to announce their ser-
vices. A notification message is the same as a response message to a discovery, but
they are sent to the UPnP broadcast address (239.255.255.250) on port 1900 via
UDP.
Also, the header ST is replaced by the header NT, but with similar values.
3.2.3 Step 2: Description
Every profile offers a description of itself and the services it offers and makes this
available via XML. The XML file can be found at the URL in the LOCATION header
from the discovery stage.
3.2.4 Step 3: Control
The third step in the protocol is called “control”, which means that a device can
ask a control point to request a service on the client’s behalf. Requesting a service
is done by sending a SOAP request to the so called “control URL” of the control
point, with the right parameters. The control URL for a specific profile can be
found inside the <service> tag in the XML file found at the URL in the LOCATION
header. As an example the <service> tag from the Thomson Speedtouch 510 for
the WANPPPConnection profile looks like this:
<service>
<serviceType>urn:schemas-upnp-org:service:WANPPPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:wanpppc:pppoa</serviceId>
<controlURL>/upnp/control/wanpppcpppoa</controlURL>
<eventSubURL>/upnp/event/wanpppcpppoa</eventSubURL>
Vue de la page 4
1 2 3 4 5 6 7 8 9 10 ... 17 18

Commentaires sur ces manuels

Pas de commentaire