Your Universal Remote Control Center
RemoteCentral.com
RS-232 & IP Control Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Panasonic Plasma RS232 2 way control
This thread has 2 replies. Displaying all posts.
Post 1 made on Saturday May 14, 2011 at 12:12
maxdgt03
Lurking Member
Joined:
Posts:
January 2011
7
I have a Panasonic vt25 series plasma that I am trying to get the power status from. I have a tsu9600 and a rfx9600 that are set up connected with a serial connection to my tv. the command sent to the tv is \x02QPW\x03. When i send the command i can get a response of QPW:1 when i just have the response displayed on a pannel. I know the 1 is the power status of the tv which is on. so i am getting a response back but i need to use the status as a condition for a button response but it wont work. i cant even change the response on the pannel using a switch statement or if statement because i think the colon in the response is messing it up so how can i parse the response to only keep the digit of 1 or 0. any help would be greatly appriciated. iv been working on this for about a week or so with no luck.
OP | Post 2 made on Saturday May 14, 2011 at 12:18
maxdgt03
Lurking Member
Joined:
Posts:
January 2011
7
This is the code i am using that is not working

var tvstaWidget = page("GAME1").widget("TVSTA");
var e = CF.extender[1];
var s = e.serial[1];
s.bitrate = 9600
s.databits = 8
s.parity = 0; // None
s.stopbits = 1;
tvsta = s.match("\x02QPW\x03", "\x03", 250);
while ( tvsta.substring( 0 ) > "9" )
tvsta = tvsta.substring( 1 );
if (tvsta == 1) {
tvstaWidget.label = "ON";
} else {
tvstaWidget.label = "OFF";
}
OP | Post 3 made on Saturday May 14, 2011 at 13:01
maxdgt03
Lurking Member
Joined:
Posts:
January 2011
7
i found some code that works on this site lol go figure iv been searching for over a week then i come across it as soon as i create a thread.


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