I have a Sony STR-DN2010 receiver that is connected to the network. There is an iOS app that can control it remotely from the local network. I'd like to find a way to control it from Indigo, but I have no idea how to find the protocol that it uses for communications. Does anyone have a suggestion on how to do this?
Thanks!
Controlling a Sony STR-DN2010 receiver?
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Re: Controlling a Sony STR-DN2010 receiver?
I did a little packet sniffing while my iPhone was communicating with the receiver and have found it uses a schema called Mediarenderer uPnP. It seems there has to be a relatively easy way to make use of this info to create a plugin, but I don't know how to start. My technical chops are just good enough to get myself into trouble. 
Re: Controlling a Sony STR-DN2010 receiver?
Just a quick question, can you set a volume level on it? Say jump straight to 30% (instead of vol up/down)
I'm looking for a receiver that will do this, hopefully over Ethernet and a simple API. Between an iPod, Mac, Xbox, etc all seem to have different audio levels.
I'm looking for a receiver that will do this, hopefully over Ethernet and a simple API. Between an iPod, Mac, Xbox, etc all seem to have different audio levels.
Re: Controlling a Sony STR-DN2010 receiver?
I don't know if a volume level can be set to an absolute value, since the iPhone app only does up and down. It does show a volume number on the display of the app that matches the number shown on the receiver's display, so I'm guessing there is some communication of the direct value.
Re: Controlling a Sony STR-DN2010 receiver?
I can't comment on the specifics of that protocol or plug-in programming, but I did do quite a bit of packet sniffing and Indigo integration with my Pioneer receiver (which uses a completely different protocol from yours). If you're familiar with shell scripting and AppleScript, you could probably get it integrated fairly well using the "nc" (i.e. NetCat) command-line utility that's included in all UNIX systems (including OS X). Use nc to send ASCII (or binary) data to your receiver's IP address and port using TCP or UDP. If the Sony supports sending replies to commands, you could probably use nc to listen on a specific TCP or UDP port for the receiver's response, which you could then pipe through osascript to insert the line into an Indigo variable for further Indigo processing. You may have to do a lot of trial-and-error testing and perhaps some man (UNIX manual) page reading about nc.bluenoise wrote:I have a Sony STR-DN2010 receiver that is connected to the network. There is an iOS app that can control it remotely from the local network. I'd like to find a way to control it from Indigo, but I have no idea how to find the protocol that it uses for communications. Does anyone have a suggestion on how to do this?