Skip to content
forked from S1N4X/Onkyo-Pi

Control Onkyo devices through Remote Interactive port from a Raspberry Pi

License

Notifications You must be signed in to change notification settings

ThiloKr/Onkyo-Pi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Onkyo-Pi

*** This document is based on docbender's work (based on Arduino), full credit to him. *** Control Onkyo devices is possible among others through Remote Interactive port. This port is normally used for direct communication between two Onkyo devices (ex. receiver and CD player). But why not turn on the receiver automatically when you start your own player?

Support for Raspberry Pi

This is based on docbender's work: Onkyo-RI library.

Thanks a lot to zatrax for helping me in converting docbender's Onkyo-RI to using WiringPi instead of the Arduino library. A makefile has also been created for compiling the code with g++. Please compile on your Raspberry pi using the makefile (modify to your taste). Please also modify the main.cpp to the code you want to send.

Please be sure to have WiringPi installed: http://wiringpi.com

Connection

To connect to the RI port is used 3.5mm mono jack. Tip is for data signal and sleeve is ground (GND). Data are sent via TTL logic. So it is easy to connect RI device to 3.3v serial (RPi). Just connect data signal to some output pin and connect GND between each other.

Protocol

Protocol description could be found at:

or with grafical representation at:

Protocol is pretty simple for implementation. In one message is transfered 12 bit code. This code represents action for target device. Most significant bit is send first.

Library

  • blocking - send() method blocks other program execution until whole command is sent. It takes up to 61 ms.

RI codes - receiver

Codes are valid for TX-8020 receiver. With a high probability it will work with other Onkyo receivers.

ActionCommandNotes
Input CD0x20Switch input to CD channel
Turn On + CD0x2FTurn on receiver and select CD as input channel
Input TAPE0x70Switch input to TAPE channel
Turn On + TAPE0x7FTurn on receiver and select TAPE as input channel
Input BD/DVD0x120Switch input to BD/DVD channel
Turn On + BD/DVD0x12FTurn on receiver and select BD/DVD as input channel
Input DOCK0x170Switch input to DOCK channel
Turn On + DOCK0x17FTurn on receiver and select DOCK as input channel
Dimmer Hi0x2B0Set dimmer brightness to highest level
Dimmer Mid0x2B1Set dimmer brightness to mid level
Dimmer Lo0x2B2Set dimmer brightness to lowest level
Dimmer Hi0x2B8Set dimmer brightness to highest level
Dimmer Lo0x2BFSet dimmer brightness to lowest level
Turn Off0x420Turn off(set into standby) receiver
Test mode0x421 - 0x424Some kind of test modes. Leave test mode is possible by code 0x420 (Turn Off). Test modes provides clear of receiver setting.
Radio search next0x430Tune next radio station when radio is selected.
Radio search previous0x431Tune previous radio station when radio is selected.
Radio Stereo/Mono0x432Switch between Stereo and Mono when FM radio is selected.
Radio station next0x433Jump to next stored radio station when radio is selected.
Radio station previous0x434Jump to previous stored radio station when radio is selected.

About

Control Onkyo devices through Remote Interactive port from a Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.0%
  • Makefile 1.0%