Home AMX User Forum AMX Technical Discussion
Options

communicate with Denon receiver via TCP/IP

I am trying to connect to my Denon receiver via TCP/IP. I can control Denon using Hypertermial, by entering IP address, and it uses port 23 and I enter a simple Denon command PWON, and unit turns on.

Now when I try to get AMX to comminicate, it doesnt work.
Here is my open:
dvIP_Denon = 0:3:0;
TCP_IP=1
IP_CLIENT_OPEN(dvIP_Denon.PORT,'192.168.1.9',80,TCP_IP);

here is feedback:
any ideas?

Line 1 (01:11:58):: ***************************************
Line 2 (01:11:58):: in BUTTON_EVENT: btDenonGRIP=
Line 3 (01:11:58):: nIDX 1
Line 4 (01:11:58):: nPNL=2
Line 5 (01:11:58):: nIPPort 8000
Line 6 (01:11:58):: TCP_IP=1
Line 7 (01:11:58):: sIPAddress=192.168.1.9
Line 8 (01:11:58):: dvIP_Denon.Port=3
Line 9 (01:11:58):: ***************************************
Line 10 (01:11:58):: Connected Successfully
Line 11 (01:11:58):: POWER DENON ON
Line 12 (01:11:58):: dvIP_Denon.PORT=3
Line 13 (01:11:58):: dvIPClient.PORT=7
Line 14 (01:11:58):: nIPPort=8000
Line 15 (01:11:58):: Exiting TCP Read thread - closing this socket for local port 3
Line 16 (01:11:58):: CIpEvent::OnLine 0:3:1
Line 17 (01:11:58):: ******************************
Line 18 (01:11:58):: MAIN AAA Inside line 1898 DATA_EVENT dvIP_Denon--ONLINE: dvIP_Denon
Line 19 (01:11:58):: AAA strDenonIPBuff=
Line 20 (01:11:58):: AAA DATA.TEXT==
Line 21 (01:11:58)::
Line 22 (01:11:58):: CIpEvent::OffLine 0:3:1
Line 23 (01:11:58):: ******************************
Line 24 (01:11:58):: MAIN AAA Inside line 1905 DATA_EVENT dvIP_Denon--OFFLINE: dvIP_Denon
Line 25 (01:11:58):: AAA strDenonIPBuff=
Line 26 (01:11:58):: AAA DATA.TEXT=
Line 27 (01:11:58)::

Comments

  • Options
    Port 23

    Why don't you still use port 23 in your declaration ?
    IP_CLIENT_OPEN(dvIP_Denon.PORT,'192.168.1.9',23,TC P_IP);
    should work fine
    Be careful you have to set up your amplifier in order the NIC card is always on even when the amplifier is off.
  • Options
    JOHNBONZJOHNBONZ Posts: 99
    I did try that, IP_CLIENT_OPEN(dvIP_Denon.PORT,'192.168.1.9',23,1) and I got this message

    Line 42 (16:06:15):: ***************************************
    Line 52 (16:06:15):: IPSocketManConnectTask - Connection Refused
    Line 53 (16:06:15):: MUTE DENON
    Line 54 (16:06:15):: SendString to socket-local port (3) invalid
    Line 55 (16:06:15):: dvIP_Denon.PORT=3
    Line 57 (16:06:15):: nIPPort=8000

    If I can communicate with Denon via Hyper Termional, port 23, then I should be able to communicate from AMX to Denon using above IP_CLIENT_OPEN, does the Controller have to be able to have port 23 turned on somehow? Notice the connection refused error
  • Options
    JOHNBONZJOHNBONZ Posts: 99
    update

    it worked , when I tri
    ed to put port 23 in the IP_CLIENT_OPEN(dvIP_Denon.PORT,'192.168.1.9',23,1);, i didnt realize I already had a Hyper Terminal sesssion going so it refused connectiuon. When I closed Hyperterminal, it then worked.

    thanks
  • Options
    Try this to see what kind of IP connection error your are facing:
    data_event[dvIP_Denon]
    {
    online: send_string 0, "'Denon is connected'"
    offline: send_string 0, "'Denon is disconnected'"
    onerror: send_string 0, "'Error N:',data.number"
    }
    It may help, moreover do you try to keep your IP connection open ?
  • Options
    Great, didn't see your last post.
Sign In or Register to comment.