///////////////////////////
///// Turning TV on ///////
///////////////////////////
> GET /smp_18_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271738
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 1 (0xd4e8b8), SoupSocket 1 (0xd46cf0)
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
< HTTP/1.1 401 Unauthorised
< Soup-Debug-Timestamp: 1487271738
< Soup-Debug: SoupMessage 1 (0xd4e8b8)
< Content-Type:
< Content-Length: 0
< Connection: close
<
> GET /smp_18_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271744
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 2 (0xd4ecb8), SoupSocket 2 (0xd46d60)
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1487271744
< Soup-Debug: SoupMessage 2 (0xd4ecb8)
< CONTENT-LANGUAGE: UTF-8
< Content-Type: text/xml; charset="utf-8"
< Content-Length: 2606
< Date: Thu, 01 Jan 1970 00:00:26 GMT
< Connection: close
< Server: SHP, UPnP/1.0, Samsung UPnP SDK/1.0
<
< <?xml version="1.0"?>
< <specVersion>
< <major>1</major>
< <minor>0</minor>
< </specVersion>
< <device>
< <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<
< <df:X_deviceCategory>Display.TV.LCD Multimedia.DMR</df:X_deviceCategory>
< <dlna:X_DLNADOC xmlns:dlna='urn:schemas-dlna-org:device-1-0'>DMR-1.50</dlna:X_DLNADOC>
< <friendlyName>[TV]UE32ES5505</friendlyName>
< <manufacturer>Samsung Electronics</manufacturer>
< <modelDescription>Samsung TV DMR</modelDescription>
< <modelName>UE32ES5505</modelName>
< <modelNumber>AllShare1.0</modelNumber>
< <serialNumber>20110813DMR</serialNumber>
< <UDN>uuid:0f7f4900-0004-1000-92dd-c4731e31b9dd</UDN>
< <sec:deviceID>7XCL6KHUZBCD4</sec:deviceID>
< <iconList>
< <icon>
< <mimetype>image/jpeg</mimetype>
< <width>48</width>
< <height>48</height>
< <depth>24</depth>
< <url>/dmr/icon_SML.jpg</url>
< </icon>
< <icon>
< <mimetype>image/jpeg</mimetype>
< <width>120</width>
< <height>120</height>
< <depth>24</depth>
< <url>/dmr/icon_LRG.jpg</url>
< </icon>
< <icon>
< <mimetype>image/png</mimetype>
< <width>48</width>
< <height>48</height>
< <depth>24</depth>
< <url>/dmr/icon_SML.png</url>
< </icon>
< <icon>
< <mimetype>image/png</mimetype>
< <width>120</width>
< <height>120</height>
< <depth>24</depth>
< <url>/dmr/icon_LRG.png</url>
< </icon>
< </iconList>
< <serviceList>
< <service>
< <serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
< <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
< <controlURL>/smp_20_</controlURL>
< <eventSubURL>/smp_21_</eventSubURL>
< <SCPDURL>/smp_19_</SCPDURL>
< </service>
< <service>
< <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
< <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
< <controlURL>/smp_23_</controlURL>
< <eventSubURL>/smp_24_</eventSubURL>
< <SCPDURL>/smp_22_</SCPDURL>
< </service>
< <service>
< <serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
< <serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
< <controlURL>/smp_26_</controlURL>
< <eventSubURL>/smp_27_</eventSubURL>
< <SCPDURL>/smp_25_</SCPDURL>
< </service>
< </serviceList>
< <sec:ProductCap>Y2012,WebURIPlayable,SeekTRACK_NR</sec:ProductCap>
< </device>
< </root>
'urn:schemas-upnp-org:device:MediaRenderer:1' Device '[TV]UE32ES5505' Available with type: 'urn:schemas-upnp-org:device:MediaRenderer:1'
Registering device [TV]UE32ES5505
> SUBSCRIBE /smp_27_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271744
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 3 (0xd4e938), SoupSocket 3 (0xd46dd0)
> NT: upnp:event
> Timeout: Second-1800
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
> SUBSCRIBE /smp_21_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271744
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 4 (0xd4ebb8), SoupSocket 4 (0xd46e40)
> NT: upnp:event
> Timeout: Second-1800
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1487271744
< Soup-Debug: SoupMessage 3 (0xd4e938)
< Date: Thu, 01 Jan 1970 00:00:26 GMT
< Server: Rex 1.0, UPnP/1.0, Samsung UPnP SDK/1.0
< SID: uuid:0f7f4900-0004-1000-8d87-c4731e31b9dd
< Timeout: Second-1800
< Content-Length: 0
< Connection: close
<
< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1487271744
< Soup-Debug: SoupMessage 4 (0xd4ebb8)
< Date: Thu, 01 Jan 1970 00:00:26 GMT
< Server: Rex 1.0, UPnP/1.0, Samsung UPnP SDK/1.0
< SID: uuid:0f7f4901-0004-1000-986e-c4731e31b9dd
< Timeout: Second-1800
< Content-Length: 0
< Connection: close
<
on_last_change
Device [TV]UE32ES5505 is now in state NO_MEDIA_PRESENT
Setting TV [TV]UE32ES5505 state to on!
Device [TV]UE32ES5505 volume is now 3
////////////////////////////
///// Turning TV off ///////
////////////////////////////
'urn:schemas-upnp-org:device:MediaRenderer:1' Device '[TV]UE32ES5505' Unavailable with type: 'urn:schemas-upnp-org:device:MediaRenderer:1'
** (process:2024): WARNING **: No notifications found for variable LastChange
** (process:2024): WARNING **: No notifications found for variable LastChange
Removing device [TV]UE32ES5505 from device list
TV state [TV]UE32ES5505 set to off
Set unsubscribed
Removing Notify for av_transport
Set unsubscribed
Removing Notify for rc_transport
Removing from hashtable
///////////////////////////
///// Turning TV on ///////
///////////////////////////
'urn:schemas-upnp-org:device:MediaRenderer:1' Device '[TV]UE32ES5505' Available with type: 'urn:schemas-upnp-org:device:MediaRenderer:1'
Registering device [TV]UE32ES5505
> SUBSCRIBE /smp_27_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271880
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 5 (0xd4e938), SoupSocket 5 (0xd46f90)
> NT: upnp:event
> Timeout: Second-1800
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
> SUBSCRIBE /smp_21_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271880
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 6 (0xd4ed38), SoupSocket 6 (0xd47088)
> NT: upnp:event
> Timeout: Second-1800
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
< HTTP/1.1 401 Unauthorised
< Soup-Debug-Timestamp: 1487271880
< Soup-Debug: SoupMessage 5 (0xd4e938)
< Content-Type:
< Content-Length: 0
< Connection: close
<
##### A SUBSCRIPTION WAS LOST!!!!!!!! #####
Reason: Unauthorised , Code: 0
The name of the device that was lost was: [TV]UE32ES5505
< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1487271880
< Soup-Debug: SoupMessage 6 (0xd4ed38)
< Date: Thu, 01 Jan 1970 00:00:20 GMT
< Server: Rex 1.0, UPnP/1.0, Samsung UPnP SDK/1.0
< SID: uuid:0bebc200-00c8-1000-b773-c4731e31b9dd
< Timeout: Second-1800
< Content-Length: 0
< Connection: close
<
Device [TV]UE32ES5505 volume is now 5
> SUBSCRIBE /smp_21_ HTTP/1.1
> Soup-Debug-Timestamp: 1487271944
> Soup-Debug: SoupSession 1 (0xd42898), SoupMessage 7 (0x72613e20), SoupSocket 7 (0xd47168)
> SID: uuid:0f7f4901-0004-1000-986e-c4731e31b9dd
> Timeout: Second-1800
> Accept-Encoding: gzip, deflate
> User-Agent: GUPnP/1.0.1 DLNADOC/1.50
> Connection: Keep-Alive
< HTTP/1.1 412 Precondition Failed
< Soup-Debug-Timestamp: 1487271944
< Soup-Debug: SoupMessage 7 (0x72613e20)
< Content-Type:
< Content-Length: 0
< Connection: close
<
##### A SUBSCRIPTION WAS LOST!!!!!!!! #####
Reason: Precondition Failed , Code: 0
The name of the device that was lost was: [TV]UE32ES5505
'urn:schemas-upnp-org:device:MediaRenderer:1' Device '[TV]UE32ES5505' Unavailable with type: 'urn:schemas-upnp-org:device:MediaRenderer:1'
** (process:2024): WARNING **: No notifications found for variable LastChange
** (process:2024): WARNING **: No notifications found for variable LastChange
Removing device [TV]UE32ES5505 from device list
TV state [TV]UE32ES5505 set to off
Set unsubscribed
Removing Notify for av_transport
Set unsubscribed
Removing Notify for rc_transport
Removing from hashtable
### Terminating eventloop... ###