TPU SOUND PROJECT

Index:

  1. Introduction
  2. HW requirements
  3. SW requirements
  4. UPnP services used
  5. The UPnP control point
  6. The UPnP media renderer (smart speaker)
  7. The user interface

The UPnP Media Renderer

UPnP Media Renderer's structure and behaviour

Control section

The control section is used to receive the SOAP requests containing the actions to be performed by the Media Renderer. The SOAP protocol uses HTTP. The default TCP port used by the device is the 4004. All the SOAP actions received from the Control Point are managed by the actionControlReceived method in the main class of the renderer. Here below you can see a pretty-print of a SOAP request for the play action.

===================================================================================== Incoming HTTP request: ------------------------------------------------------------------------------------- POST /upnp/control/avtransport/ HTTP/1.1 User-Agent: uhttp/0.6 libuhttp++/0.6 Accept: */* Content-Type: text/xml; charset="utf-8" HOST: 192.168.1.103:4004 Content-Length: 317 SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Play" Connection: close <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> <InstanceID>0</InstanceID> <Speed /> </u:Play> </s:Body> </s:Envelope> =====================================================================================
Figure 4: SOAP request containing the play action into the body