Page 1 of 1

domoticz an denon

Posted: Wednesday 25 January 2017 13:45
by pvklink
I can send actions to my denon receiver, on off, inputs like ituner etc.
Does anybody know how to acticate a radiochannel with http commands?

I use commands like http://192.168.178.176/MainZone/index.p ... tion/TUNER to control my denon...

Re: domoticz an denon

Posted: Wednesday 25 January 2017 23:20
by Egregius
Google or denon protocol and you'll find a pdf with all commands.

Re: domoticz an denon

Posted: Thursday 26 January 2017 20:36
by pvklink
I read the protocol and these are telnet commands i think
for example with ZMFAVORITE1 i can activate my favorite1 or TFAN008750 is to play fm frequency 8750

When combining these commands with HTTP
http://192.168.178.176/MainZone/index.p ... MFAVORITE1
http://192.168.178.176/MainZone/index.p ... TFAN008750
nothings happens !

Are the HTTP commands different then the protocol commands?

Re: domoticz an denon

Posted: Friday 27 January 2017 0:38
by Dnpwwo
@pvklink,

The protcol commands are completely different from the HTTP interface and are designed to allow the Denon to be automated. They need to be sent over the telnet port (23) not the http port (80).

If you search the forum you will find there a number of solutions out there that may do what you want.

Re: domoticz an denon

Posted: Friday 27 January 2017 7:01
by Egregius
In PHP the telnet command would look like:

Code: Select all

<?php

denon('TFAN008750');

function denon($cmd){for($x=1;$x<=10;$x++)if(denontcp($cmd,$x))break;}
function denontcp($cmd,$x){
    $sleep=102000*$x;
    $socket=fsockopen("192.168.2.4","23",$errno,$errstr,2);
    if($socket){fputs($socket, "$cmd\r\n");fclose($socket);usleep($sleep);return true;}
    else{usleep($sleep);echo 'sleeping '.$sleep.'<br>';return false;}
}
?>
Function denon runs in a loop until function denontcp returns true. This because sometimes the interface doesn't respond directly. The 102000 microseconds sleep is then used, found that value by trial/error.

Re: domoticz an denon

Posted: Saturday 28 January 2017 11:58
by pvklink
I have debugged the inside webinterface from my receiver and found some http commands

http://192.168.178.176/MainZone/index.p ... eStatus%2F

change <parameter> for:

PutSurroundMode/DOLBY DIGITAL
PutSurroundMode/MCH STEREO
PutSurroundMode/MOVIE
PutSurroundMode/MUSIC
PutSurroundMode/GAME
PutSurroundMode/PURE DIRECT
PutSurroundMode/DIRECT
PutSurroundMode/STEREO
PutSurroundMode/STANDARD
PutSurroundMode/SIMULATION
PutSurroundMode/AUTO
PutSurroundMode/LEFT
PutSurroundMode/STEREO

PutSystem_OnStandby/ON

PutZone_OnOff/OFF
PutZone_OnOff/ON
PutZone_InputFunction/GAME
PutZone_InputFunction/SAT%2FCBL
PutZone_InputFunction/FMPLAY
PutZone_InputFunction/DVD
PutZone_InputFunction/TUNER
PutZone_InputFunction/TV
PutZone_InputFunction/MPLAY
PutZone_InputFunction/IRADIO
PutZone_InputFunction/NETHOME


http://192.168.178.176/Tuner/TUNER/inde ... eStatus%2F

change <parameter> for:
PutTunerFrequency%2F009540