Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
RFX9600 and Onkyo TX-NR905 Part2/2
This thread has no replies.
Post 1 made on Monday January 5, 2009 at 06:50
Prylbogen
Long Time Member
Joined:
Posts:
February 2008
31
I'm trying to develop some prontoscript for my TSU9600/RXF9600 enabling status feedback from my 905 amp through RS232.

The 905 sends status feedback whenever a property (volume, input, etc) in the reciever has changed. I can also send a query to the reciever for each property recieving an update on the status.

I would like the pronto screen to be updated without interaction whem a property in the reciever is changed. Lets say for example i have a page monitoring volume and input. If someone turns the volume knob on the reciever this should be reflected on the page. I solved this by adding a script on the activity level using a polling mechanism and a onData function with a parser that update the widgets on their respective page.

My problem is that when i enter a page i would like to query the reciever for each och the properties that the page reflects. I tried to solve this by adding a script to the page that contains one line for each property like this:

reta = s.match("!1SLIQSTN\r","\x1A",1000);
retb = s.match("!1MVLQSTN\r","\x1A",1000);

But i notice two things. The return value is null when a function is attached to the onData property and the onData function only catches the response for the first command.

My guess is that the callback isn't called until the page script is finished.

I think i can solve this issue by detaching the the callback (onData = null) and stop the poll mechanism when i enter the page, fire the queries as above and parse the return value, update witdgets and then again reattach the callback function and start the polling mechanism again.

My question is if this is a good approach?
Any comments and suggestions are welcome.

Regards

Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse