eISCP to control Onkyo receivers via LAN

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
Freeeze
Posts: 6
Joined: Thu Jan 28, 2010 3:07 pm

eISCP to control Onkyo receivers via LAN

Post by Freeeze » Thu Feb 11, 2010 12:52 pm

Hello,

If you have wondered how you can control your network enabled Onkyo Receiver via LAN you may find this interesting:

The commands are the same as used in the Onkyo Serial plugin, however they are sent via LAN.

1. Make sure you have enabled this function in the Onkyo menu
2. set the port to 60128
3. save the settings
4. restart the receiver
5. get the IP Address of your receiver (here it is 192.168.0.123)

Code: Select all

import socket

# create a socket connection
s = socket.socket()
s.connect(('192.168.0.123', 60128))

# setup command - in this case, 'power on'
cmd="!1PWR01"

length=len(cmd)
print cmd
length=length+1
code = chr( length )

# setup the string we are sending ...
line  = "ISCP\x00\x00\x00\x10\x00\x00\x00code\x01\x00\x00\x00cmd\x0D";
line = line.replace("code", code)
line = line.replace("cmd", cmd)
# send it !
s.send(line)
# close the socket
#data = s.recv(1024)
data = s.recvfrom(65565)
s.close()
print data
best regards

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: eISCP to control Onkyo receivers via LAN

Post by Livin » Sat Feb 13, 2010 9:11 pm

nice post!

Wish I had an Onkyo with a LAN connection. My 805 only has serial.

It would be cool if you made a plugin specifically for this. You could probably take the Onkyo serial plugin and mod it to wrap the commands with the LAN packaging.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

Post Reply