docbender / Onkyo-RI

Control Onkyo devices through Remote Interactive port
MIT License
132 stars 15 forks source link

A little help please #3

Open joster1 opened 8 years ago

joster1 commented 8 years ago

Hello,

I just ordered a whole house distributed audio amplifier (Dayton Audio DAX66) and an Onkyo TX8140. When any zone is turned on on my amplifier (via in wall keypads), I need the Onkyo receiver to turn On. When all zones are off, I'd like the receiver to go into Standby.

I will use the 12V "Control Out" output from the amplifier to signal my arduino (via a relay to protect it from 12V and keep it isolated). When the 12V is high, I want the Onkyo on and set to Tuner/Internet radio.

Questions:

  1. For this application, would it matter if I use the Onkyo_send_blocking vs the Onkyo_send_non-blocking?
  2. Do you know the two commands that I would need to toggle the Onkyo On/Tuner and Off?

Thank you so much!

docbender commented 8 years ago

Hello @joster1,

to your first question. For simple application is better to use "blocking" version. It's simpler. This version blocks execution of any code in arduino until command to Onkyo is send (around 61ms). If u need do something during that period than use "non blocking" version.

About TurnOff command. Try commands from table at main page. I only tested it for my receiver and for it TurnOff represents 0x420 command. If it doesn't work, you can run "test" project on your arduino. It send all commands one by one. You have to only watch device behaviour and debug information in arduino serial monitor.

oelegeirnaert commented 7 years ago

Hello,

I do have an Onkyo TX-SR307 AV Amp and I'd like to use the RI interface too. Please can you provide me a wiring diagram for an Arduino? In fact, I don't know which Arduino pin I do need to use as data signal.

Thank you very muchroom, Oele Geirnaert

docbender commented 7 years ago

Hello @oelegeirnaert,

you can use any of Arduino digital pin. It is on your choice. Only than provide pin number to class constructor :

#define ONKYO_PIN 10

OnkyoRI ri(ONKYO_PIN); 

Wiring is easy. Just connect grounds together and data pin connect to JACK tip.

 x----- data -----/\                         
                 |  | 
                 |__|
                 |  |
  /---- GND -----|  |
_|_              |  |
oelegeirnaert commented 7 years ago

Hi, Many thanks for your quick answer!

The purpose is to make an internet connected Amplifier. I'll send my commands through MQTT and as front-end I'm thinking to use Node-Red.

Kind regards, Oele Geirnaert

oelegeirnaert commented 7 years ago

Dear,

As promised, I just did some tests and the wiring seems to be OK. I was able to send some codes to my amplifier, but know I'd like to know the exact codes.

I found a link where the codes of my remote where explained, but is the Interactive Remote using the same codes as the Infrared Interface?

Codes for my remote: https://sourceforge.net/p/lirc-remotes/code/ci/master/tree/remotes/onkyo/RC-735M.lircd.conf?

You told something about 12 bits, but the receiver I'm using needs 24 bits as I can read on that link. How to change the arduino code for that?

Kind Regards, Oele

docbender commented 7 years ago

I don't think there is relationship between RI and remote control.

RI mainly serves to turn on/off receiver or switch input channel so only limited functions could be managed by RI. Unfortunately Onkyo does not publish supported codes.

You can try detected codes for my receiver or you can detect your code-set yourself by test program for Arduino: https://github.com/docbender/Onkyo-RI#test-program

jrote1 commented 5 years ago

Hi @oelegeirnaert I see that you got this working with the TX-SR307 AMP, I was wondering if you have figured out any of the common codes and also did you do anything with the read side of this? Thanks

oelegeirnaert commented 5 years ago

Hi @jrote1 , Currently I don't haven't this amp (and thus code aswell) anymore :-) Sorry!