foxriver76 / ioBroker.denon

Denon AVR adapter for ioBroker
MIT License
19 stars 9 forks source link

Request: Input signal format infos #62

Closed SpikeNbg closed 5 years ago

SpikeNbg commented 5 years ago

Hi!

First, i love your adapter, very handy! :)

For my homecinema it would be great to have some more infos about input signals, like audio and video. As you can't control them obviosly, just the infos would be nice..

I've tried myself a few telnet commands, here is a list of them:

command "SSINFSIGRES ?" gives the input resolution with hz: SSINFSIGRES I1080i:50Hz

or you can use command SYSDV SYSDVIN 1080i:50Hz SYSDVOUT --- SYSDV END i guess SYSDVOUT is set, if you use scaling or deinterlacing from marantz/denon.

command "SSINFAISFOR ?" gives the incoming channels. (just the text 2/0/.0) would be nice. SSINFAISFOR 2/0/.0

command SYSMI gives the input format (not the surround format, which you already have) SYSMI Dolby Audio - Dolby Surround

the output surround format is command SYSDA SYSDA Dolby Audio - DD

There are some more infos, that come from time to time in telnet, don't know how to "ask" for them in telnet: SSINFAISFSV 48K (seems to be audio signal input quality)

Do you think you can implement these infos as states?

Thank you very much and all the best Ralf

foxriver76 commented 5 years ago

Which AVR model do you use? Then, I can try to get more information.

SpikeNbg commented 5 years ago

Thanks for your quick replay! I'm using a Marantz SR 6013.. But i would think that the commands should work with all the new "telnet" capable receivers.. Before i was using a Marantz SR 7007, which i was communicating with over ip control..

foxriver76 commented 5 years ago

I will try the commands on my AVR tomorrow. However, according to the protocol specs they are not supported on my Denon AVR.

SpikeNbg commented 5 years ago

Yes, you are right. they are not in the specs..

I found them on 2 ways.. The main one was the Marantz app (iPhone). When i'm connected to the telnet AND start the App in the same time and do some things on the app, i see all the informations on the telnet session. (quite interesting, as i start the telnet session on my pc and the app is (of course) on my phone) The second one was searching the web after i've noticed some undocumented results on the telnet session. On the web i've found some explanations and other people try to get sense to all of these)

When you're testing you'll probably see some more informations, the ones on my first post seem to me (personally of course) the most important ones. Btw, it's quite hard to find the newest specs of the protocol.. I've found plenty different ones in the web, none seems to be from this year or the last.. :)

Looking forward to hear of your results with your AVR!

foxriver76 commented 5 years ago

Tried some:

According to your comment it looks very different on your AVR. So I don't really know how to interpret a value of 006 yet.

In summary, it seems that SYS* commands are not working on my DENON X1200W, maybe they are Marantz specific. However, I would like to implement the listed SS* commands. AVR does not automatically send the SSIN commands at start, thus we have to poll it. MAybe I will add them to info channel because of their read-only nature.

SpikeNbg commented 5 years ago

Hi! Ah, i see, thanks for testing!! I have another idea, maybe just for us, that have the opportunity to use that settings.. You already have a setting "denon.0.settings.expertCommand". Would it be possible to have a kind of command like "expertReading" or so, with an other state like "expertReadingResult", so i could send the command to the denon adapter and get a result, so i could poll it myself.. Just thinking, because i wouldn't have to implement a telnet denon/marantz polling myself.. :) Just asking.. :) All the best and thanks so far!

foxriver76 commented 5 years ago

So you mean setting expertReading state to a pattern like MV and when MV80 comes in it will cut MV and you will get 80 in expertReadingResult. We can try that.

Or option 2, let’s say you can pass a Regex to expertReading and every incoming data which matches the Regex will be set to expertReadingResult. I guess this would be more useful.

foxriver76 commented 5 years ago

You can try 1.7.0.

SpikeNbg commented 5 years ago

Moin!

Thats great, thanks! :)

Works nicely.. Didn't quite realised that i have to trigger with expertCommand first.. :) But then, when i use that regex pattern and trigger with expertCommand, i get all the states..

(you could maybe correct in your answer the Example (Pattern not Patter), just in case somebody makes a copy and paste like me and wonders why the state doesn't change ;-) setState('denon.0.settings.expertReadingPattern', '(MV.+)|(SSINFAISFSV.+)');

Thanks again for your REALLY fast reply and implementing! I was just for lunch with family and when i come back, all is done..

You really need to implement a "Buy me a beer" button on your webpage! I would love to say thanks..

All the best, DANKE and Cheers!

foxriver76 commented 5 years ago

You are very welcome. I will correct the typo in readme asap.

Actually, the buy me a beer button is more or less existing, e.g. via PayPal, see Sponsor button in the top right corner. 282B99D7-16A5-447E-9356-C593B61D5DCD

foxriver76 commented 5 years ago

@SpikeNbg Thank you for your donation. I really appreciate this. :+1:

SpikeNbg commented 5 years ago

You are more than welcome! All my status infos are now always up to date! 👍