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

Login:
Pass:
 
 

Topic:
Parse/filter a serial response without widgets?
This thread has 7 replies. Displaying all posts.
Post 1 made on Sunday August 29, 2010 at 03:21
brodyboy
Long Time Member
Joined:
Posts:
April 2008
375
A some may recall, I was recently trying to devise a quick way to assess the power state of my Pioneer displays using 2-way RS-232. Well, I've FINALLY discovered a query command that generates a response which includes power state info. (It wasn't in the RS-232 documentation.)

It's a 39-byte response that includes data about the panel's current state, with the forth character (the first actual variable) indicating power state. Other variables, like the hour meter data, will change with each iteration of the command.

I'm wondering if there's any way I can use this response short of using a widget filter. FOr example, is there some way that Nevo could truncate the response, ignore subsequent characters, or otherwise filter for that fourth byte for an IF/THEN/ELSE command? It seems like that would be a very quick & efficient way to use the info.
Post 2 made on Sunday August 29, 2010 at 17:14
sydinstaller
Active Member
Joined:
Posts:
February 2004
740
Most likley yes.

Can you post the data?

But this can only be done with widgets.

if/then will ONLY work if the data has an EXACT match. Widgets can check against the 4th character.

D.
OP | Post 3 made on Sunday August 29, 2010 at 21:14
brodyboy
Long Time Member
Joined:
Posts:
April 2008
375
Sure. The query command is QS2, and here's an example of a response:

QS2P0000-**267000***0014594200000****45

The 4th character reflects the power state and has three possible responses. The two relevant ones are P=ON and 1=STANDBY. The subsequent characters indicate other operational conditions.

I was afraid IF/THEN/ELSE would only work with exact responses. That's the only way I've ever known how to use it. :(
Post 4 made on Sunday August 29, 2010 at 23:00
sydinstaller
Active Member
Joined:
Posts:
February 2004
740
Here is a widget to try:
[Link: mediafire.com]

Pioneer Power State.

You will need to delete my RS-232 device and replace it with yours, I left it there so you know how to join it up.

Also.
I am not sure if QS2 is all that is needed to trigger a request. You may need a \r or \r\l etc...

But using the Nevo de-bugger software it is working as expected.

D.
OP | Post 5 made on Monday August 30, 2010 at 01:27
brodyboy
Long Time Member
Joined:
Posts:
April 2008
375
Thank you! I'll give it a try first chance I get tomorrow. :) I'll let you know how it works. Thanks much for taking the time...

(The Pioneer protocol does use start and stop bytes, but for simplicity, I didn't include those.)
Post 6 made on Monday August 30, 2010 at 02:30
sydinstaller
Active Member
Joined:
Posts:
February 2004
740
No prob.

That widget may not work if there is extra data in the reply string. Its 50/50.

If it doesn't can you show the full data and I will change the filter to suite.

D.
OP | Post 7 made on Thursday September 2, 2010 at 18:28
brodyboy
Long Time Member
Joined:
Posts:
April 2008
375
After initially going through and customizing to my own equipment, I'm finally getting a chance to try this out. Now, assuming I get it to work and successfully set the global flag, does the widget need to be added to every page that includes commands that might check the flag's status?
Post 8 made on Thursday September 2, 2010 at 19:45
sydinstaller
Active Member
Joined:
Posts:
February 2004
740
Hi,

Yes and no....

The "global" flag can be checked without the widget on the page but the flag will only be updated by the widget when it is run. It will only run when it is on a loaded page.

D.


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