New Pioneer AVR Network Plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.

Re: New Pioneer AVR Network Plugin

Postby Sem;colon » Tue Dec 31, 2013 12:58 pm

DarkCinema wrote:Hi,

Is it possible to get the Audio input type (Request AUDIO information Parameter by ASCII code) ? I only can get the ASCII value with "?AST" and the output of that isn't an event.


Thanks.

This is planned for the next release (as well as the Video information)
Sem;colon
Experienced User
 
Posts: 559
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: New Pioneer AVR Network Plugin

Postby kkl » Tue Dec 31, 2013 4:22 pm

DarkCinema wrote:Hi,
Is it possible to get the Audio input type (Request AUDIO information Parameter by ASCII code) ? I only can get the ASCII value with "?AST" and the output of that isn't an event.

I'm sure that sem;colon will take care of it, but it seems that your question has changed. The AUDIO information is logged as an event when there is a change, but if you're trying to get it on demand, you might try sending STS (status display) or APA (audio parameter), each of which generates several events. You might have to send twice.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Tue Dec 31, 2013 6:45 pm

kkl wrote:I'm sure that sem;colon will take care of it, but it seems that your question has changed. The AUDIO information is logged as an event when there is a change, but if you're trying to get it on demand, you might try sending STS (status display) or APA (audio parameter), each of which generates several events. You might have to send twice.


Yes my question changed, as I go along using eventghost I come up with new ideas that need other programing :p.
I did not know that an event is generated when audio info changes, this will be very usefull for my needs. Currently I have it working with the other plugin, but since that crashed and needs to be restarted this road seems to be better.
I will test some more to see if I can use this in it's current state.

FYI, i want to trigger the lights to dim as soon as another audio input is detected other than PCM. This way whenever I start playing a movie the light will dim regardless if I use XBMC, Popcorn A400 or the Mede8er.
This is working now. When DTS-HD is detected the HUE lights will turn Blue and then dim, when AC3 is detected light will turn red. and than dim. When playback stops and PCM is detected lights will go on again.

Love Eventghost.
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

Re: New Pioneer AVR Network Plugin

Postby kkl » Tue Dec 31, 2013 9:07 pm

Example using this plug-in (as suggested by sem;colon):
eg4.JPG


The event Pioneer_AV_NET.FL also includes info other than audio status, so other conditions might need to be set if that is the trigger.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Thu Jan 02, 2014 11:08 am

When the “Input Audio” changes I don’t receive an event that tells me the “Input Audio” I only receive: “Pioneer_AV_NET.LM0206”
It is possible to change this in the plugin or is it limited by what the Pioneer sends?
Polling with STS is not useful atm since I don’t receive an event.
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

Re: New Pioneer AVR Network Plugin

Postby Sem;colon » Thu Jan 02, 2014 9:14 pm

DarkCinema wrote:When the “Input Audio” changes I don’t receive an event that tells me the “Input Audio” I only receive: “Pioneer_AV_NET.LM0206”
It is possible to change this in the plugin or is it limited by what the Pioneer sends?
Polling with STS is not useful atm since I don’t receive an event.


well, you can only use the "FL" and the "LM" commands.
I bet you could write a script that does what you want with these two events, but it could get a bit more complex.
The receiver doesn't send anything but what you can see.
Sem;colon
Experienced User
 
Posts: 559
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: New Pioneer AVR Network Plugin

Postby kkl » Fri Jan 03, 2014 12:32 am

DarkCinema wrote:When the “Input Audio” changes I don’t receive an event that tells me the “Input Audio” I only receive: “Pioneer_AV_NET.LM0206”

I'm confused by your use of the term "Input Audio". Physical inputs are a mixture of audio and video (e.g. BD, HDMI1...HDMI7, CD, iPOD, etc.). Are you referring to audio modes such as Stereo, DTS, DD? If you're trying to catch anything other than PCM, what other modes are you seeing on your display?

DarkCinema wrote:Polling with STS is not useful atm since I don’t receive an event.

What is the status of the checkbox in the lower left corner of your EG window that says "Log only assigned and activated events"? If that is checked, you are missing many events.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Fri Jan 03, 2014 9:42 am

The only way I can think of to be able to tell if a movie is playing is to look at the “audio input signal”
In general this will be either AC3, DTS, DTS-MA or TrueHD. This is in the output from the ?AST command "data1&data2". If no movie is playing the audio input signal will be just PCM.

Code: Select all
Request AUDIO information Parameter by ASCII code
?AST<CR>
AST(data1)(data2)……(data32)(data33)<CR+LF>
ex)DOLBY DIGITAL 3/2/.1 in PRO LOGIC2 MOVIE playing, SP setting 7.1ch(SBch*2),
AST050211111000100000001111110110000<CR+LF>
data1~data2:Audio Input Signal

With the Pioneer_AV_NET plugin either on port 23 or 8102, when I send the STS command I only receive: “Pioneer_AV_NET.STS” (while logging everything). With the other plugin I can send the command “PioneerEthernet.Audio.State” and receive the “PioneerEthernet.Received.AST.Signal 'PCM'”
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

Re: New Pioneer AVR Network Plugin

Postby kkl » Fri Jan 03, 2014 6:21 pm

I can only say that it all works for me. Make sure to send STS and not ?STS. Here's a screen cap:
eg5.JPG

Sending STS triggers multiple events, including Pioneer_AV_NET.FL u" PCM " if that is the current status. But if you're trapping for " PCM " as I demonstrated in a post above, you shouldn't need to manually try to trigger it. If you're never seeing Pioneer_AV_NET.FL u" PCM ", that's a completely different problem.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Fri Jan 03, 2014 6:33 pm

Thanks but somehow it is not working form me. Could be related to my Receiver VSX-2021. Tried a clean EG XML with only this plugin.

Code: Select all
19:31:29   Pioneer_AV_NET: SendCommand: PO
19:31:30   Pioneer_AV_NET.PWR0
19:31:30   Pioneer_AV_NET.LM0401
19:31:30   Pioneer_AV_NET.LM0401
19:31:30   Pioneer_AV_NET.FN10
19:31:30   VTA011111111111111111000000000000
19:31:30   Pioneer_AV_NET.LM0401
19:31:33   Pioneer_AV_NET.LM0401
19:31:36   Pioneer_AV_NET: SendCommand: STS
19:31:36   Pioneer_AV_NET.STS
19:31:57   Pioneer_AV_NET: SendCommand: ?P
19:31:57   Pioneer_AV_NET.PWR0
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

Re: New Pioneer AVR Network Plugin

Postby kkl » Fri Jan 03, 2014 9:32 pm

Perhaps it is a receiver difference. Something that I find odd is that "PCM" is not actually listed in the Pioneer spreadsheet of Listening Modes (attached). You might try to send a "?L" command. For me when PCM is displayed, that results in a Pioneer_AV_NET.LM '1108' event that is listed as "1108: multi ch Straight Decode". That may correlate directly with PCM.

Edit: Looks like you could also get a 010c: 2ch Straight Decode.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Fri Jan 03, 2014 9:55 pm

It is not the listening mode I am after. I am looking to get the audio input type as per PDF.

Code: Select all
22:56:25   Pioneer_AV_NET: SendCommand: ?L
22:56:25   Pioneer_AV_NET.LM0401
22:56:27   VTA000000111111111111000000000000
22:57:26   Pioneer_AV_NET: SendCommand: ?AST
22:57:26   AST0304000000000000000000000000000000000000000


AST03 = PCM
Attachments
Capture.PNG
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

Re: New Pioneer AVR Network Plugin

Postby kkl » Fri Jan 03, 2014 11:41 pm

As sem;colon explained, ?AST does not currently generate events. So, your options are to look for an alternative method or wait to see if he updates the plug-in.
kkl
Experienced User
 
Posts: 302
Joined: Wed May 04, 2011 9:32 pm

Re: New Pioneer AVR Network Plugin

Postby Sem;colon » Sun Jan 12, 2014 3:23 pm

Hi All,

I just released the version 0.6 of the plugin!
You can download it from the first post.

It has the requested possibility to get VST/AST events along with some other small improvements.
Some events may have changed, so if some macros suddenly stop working after updating, this could be the reason.

Please let me know if you experience any bugs or "strange" events!
Last edited by Sem;colon on Sun Jan 12, 2014 6:10 pm, edited 1 time in total.
Sem;colon
Experienced User
 
Posts: 559
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: New Pioneer AVR Network Plugin

Postby DarkCinema » Sun Jan 12, 2014 4:12 pm

Thanks, gonna have a look at it.

Seems to work, thanks a lot:

Code: Select all
17:20:51   Pioneer_AV_NET: SendCommand: ?AST
17:20:51   Pioneer_AV_NET.AST0301000000000000000000000000000000000000000
17:20:51   Pioneer_AV_NET.AST.Audio_Input_Signal '03'
17:20:51   Pioneer_AV_NET.AST.Audio_Input_Frequency '01'
17:20:51   Pioneer_AV_NET.AST.Audio_Input_Channel_Format '000000000000000000000'
17:20:51   Pioneer_AV_NET.AST.Audio_Output_Channel '000000000000000000'
17:21:05   Pioneer_AV_NET: SendCommand: STS
17:21:05   Pioneer_AV_NET.STS
17:21:06   Pioneer_AV_NET.FL u"     PCM      "
17:21:08   Pioneer_AV_NET.FL u" fs: 44.1kHz  "
17:21:11   Pioneer_AV_NET.FL u"  M1.MEMORY 1 "
17:21:14   Pioneer_AV_NET.FL u"ZONE 2 OFF    "
17:21:17   Pioneer_AV_NET.FL u"ZONE 3 OFF    "
17:21:20   Pioneer_AV_NET.FL u"  HDMI OUT 1  "
17:21:23   Pioneer_AV_NET.FL u"    STEREO    "
DarkCinema
 
Posts: 25
Joined: Wed Sep 26, 2012 10:46 pm

PreviousNext

Return to Coding Corner

Who is online

Users browsing this forum: No registered users and 2 guests