LinuxMCE Forums

General => Users => Topic started by: ladekribs on January 19, 2011, 01:56:58 pm

Title: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: ladekribs on January 19, 2011, 01:56:58 pm
I would like to power on/off a Sony TV via the network using DLNA commands, and maybe also select input,control volume etc.

Is it possible?
where can I find the command syntax?


BR Stefan
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: tschak909 on January 19, 2011, 04:55:33 pm
looks like it's time to do some research, buddy. ;)

-Thom
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: Marie.O on January 19, 2011, 05:54:41 pm
Stefan,

best place to ask this would be your local Sony representative. But I would not put my hopes to high
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: ladekribs on January 19, 2011, 07:00:16 pm

@Thom,I have been searching for a while with no luck, trying to read the upnp docs, but know too little to understand it

@Posde, thought that maybe some other device used standard UPNP or DLNA commands, like for example the roku soundbridge,or the Sony VPL-HS51 Ethernet?


BR Stefan
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: hari on January 19, 2011, 07:49:41 pm
did you try to control it with the generic control point from gupnp? It has a nice upnp browser..
.
br Hari
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: golgoj4 on January 19, 2011, 07:54:06 pm
My understanding is that actual av control over upnp is spotty by device. Different ones come with remote control capability of vary degrees with the newer ones supporting remote initialization of both online media via integrated applications (connected tvs and such) and playback of media from devices such as other upnp servers and media devices. The upnp universe is far from anything resembling coherent at the moment despite the supposed DNLA Alliance. Basically, as others have mentioned, you need to investigate what the target devices capabilities are fully. LinuxMCE can do just about anything, its the devices its talking to and their interfaces being co-operative thats the question.

Hari's recommendation of using a upnp browser is a good idea although its probably best to investigate before you buy.

-golgoj4
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: totallymaxed on January 20, 2011, 01:50:47 am
I would like to power on/off a Sony TV via the network using DLNA commands, and maybe also select input,control volume etc.

Is it possible?
where can I find the command syntax?


BR Stefan

Hi Stefan

We're very interested in this whole area ie using the more advanced aspects of the UPnP spec to allow all control functions to be handled. The next release of Dianemo will implement UPnP-AV and this enables our Dianemo system to become a UPnP control point and therefore control any UPnP device that supports the standard; See here for more info on what we're upto http://forum.linuxmce.org/index.php?topic=8880.msg60443#msg60443 (http://forum.linuxmce.org/index.php?topic=8880.msg60443#msg60443)

In principle what you are asking is possible but those controls are not in the UPnP-AV service itself and so it would require the manufacturer to support the extended RenderingControlService. I am not aware of Sony doing that to date. See the snippit of the UPnP AV Architecture:1 docs below for a brief para on this service;

3.2.1. RenderingControlService
This service provides a set of actions that allow the Control Point to control how the Renderer renders a
piece of incoming content. This includes rendering characteristics such as Brightness, Contrast, Volume,
Mute, etc. The Rendering Control service supports multiple, dynamic instances, which allows a Renderer
to “mix together” one or more content items (e.g. a Picture-in-Picture window on a TV or an audio mixer
device). New instances of the service are created by the ConnectionManager::PrepareForConnection()
action. If the ConnectionManager::PrepareForConnection() action is not implemented the default value

See this doc for further information; http://upnp.org/specs/av/UPnP-av-RenderingControl-v1-Service.pdf (http://upnp.org/specs/av/UPnP-av-RenderingControl-v1-Service.pdf)

The full set of UPnP docs can be downloaded and read at your leisure here; http://upnp.org/sdcps-and-certification/standards/sdcps/ (http://upnp.org/sdcps-and-certification/standards/sdcps/)

Hope the above is of use to you.

All the best


Andrew
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: ladekribs on January 20, 2011, 08:49:55 am
Thank You all, I will start reading.
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: ladekribs on February 01, 2011, 02:39:35 pm
Hi All,

Sony support said that for time being such commands (poweron/off) are not supported, but has now been suggested as a good feature.




BR Stefan
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: Sigg3.net on February 09, 2011, 11:23:18 pm
All HDMI hardware includes the CEC protocol wires. Though few includes all CDC features, and most of them use proprietary ones, I would bet that those that do have CEC functionality support turning device ON and OFF.

Read more here:
http://forum.linuxmce.org/index.php?topic=9664.0

So if your TV has HDMI then it has the CEC wires. Sony uses its own version of CEC called BRAVIA Sync.
We just need a few years of hacking it:)
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: totallymaxed on February 10, 2011, 03:57:31 am
All HDMI hardware includes the CEC protocol wires. Though few includes all CDC features, and most of them use proprietary ones, I would bet that those that do have CEC functionality support turning device ON and OFF.

Read more here:
http://forum.linuxmce.org/index.php?topic=9664.0

So if your TV has HDMI then it has the CEC wires. Sony uses its own version of CEC called BRAVIA Sync.
We just need a few years of hacking it:)

Your right about CEC... but the problem is every manufacturer implements it in a proprietary way and therefore as you say it will take years of trial and error to get any kind of cross vendor support in place. With UPnP's RenderingControlService we are likely to see a lot of manufacturers get on board and they can add it and update in simple over-the-air updates that dont rely on specific hardware.

We expect to see Sony, Panasonic, LG and Philips support the RenderingControlService before the end of the summer this year in pretty much all of their lineups.

All the best


Andrew
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: Sigg3.net on February 11, 2011, 11:36:38 am
Sounds great, tm, I didn't know about RenderingControlService!
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: Marie.O on February 05, 2012, 11:08:07 am
Hello Andrew,

[..]
We expect to see Sony, Panasonic, LG and Philips support the RenderingControlService before the end of the summer this year in pretty much all of their lineups.
[..]

did the manufacturers meet your expectations?
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: totallymaxed on February 05, 2012, 11:19:57 am
Hello Andrew,

did the manufacturers meet your expectations?

Yes some have - Panasonic and Sony in particular.
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: dextaslab on August 17, 2014, 09:41:41 am
Hi, I know this is an old topic, but... Most* Sony TV's (2011+) with network cards can be controlled using the Sony Virtual Remote  (v1.2 is the latest I could find). It uses IRCC (some kind of UPNP or DLNA derivative) to communicate with the TV:

Ircc_Xml\Bravia_default.xml
 <command name="Power" type="ircc" value="AAAAAQAAAAEAAAAVAw==" />
  <command name="Display" type="ircc" value="AAAAAQAAAAEAAAA6Aw==" />
  <command name="VolumeUp" type="ircc" value="AAAAAQAAAAEAAAASAw==" />
  <command name="VolumeDown" type="ircc" value="AAAAAQAAAAEAAAATAw==" />
  <command name="Mute" type="ircc" value="AAAAAQAAAAEAAAAUAw==" />

The virtual remote works fine after it's paired to the tv. I'm just trying make a device template to accommodate it... If anyone can point me in the right direction it would be appreciated  ;D
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: dextaslab on August 18, 2014, 02:18:11 pm
This code is good, just needs some modification to work: https://github.com/UnlimitedStack/Auto3D/blob/master/Auto3D-Sony/SonyTV.cs (https://github.com/UnlimitedStack/Auto3D/blob/master/Auto3D-Sony/SonyTV.cs)

The registration code connects and prompts for registration on the TV (PS I have a KDL-40EX520)
Title: Re: Can I control a DLNA device (SONY TV) from Linuxmce?
Post by: totallymaxed on August 19, 2014, 11:49:38 am
Just a quick update on this topic;

We use a combination of device templates to control SmartTV's. See our Wiki page section for specifics; http://wiki.linuxmce.org/index.php/Dianemo_S#TV_Control_In_Summary (http://wiki.linuxmce.org/index.php/Dianemo_S#TV_Control_In_Summary). I think this section needs some updates for other brands of TV's - which I will follow up on asap. Most modern SmartTV's are controllable to some extent by using our Universal UPnP template alone but every make/model varies a lot in this respect. One universal limitation is that if you force  SmartTV's into stand-by mode with an 'Off' command they will not respond to an 'On' command to wake them up again (because the network port is powered down in stand-by mode!). So we always use our CEC HDMI over IP device to power up TV's from stand-by.

So depending on the brand of TV we use one or all of the device templates mentioned to deliver control of the TV. Its a little bit messy but until TV manufacturers standardise how they implement this this is not going to change - don't hold your breath for that!

All the best

Andy