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

Login:
Pass:
 
 

Original thread:
Post 5 made on Saturday January 24, 2009 at 19:45
gopronto
Senior Member
Joined:
Posts:
April 2008
1,453
On January 24, 2009 at 19:38, Lyndel McGee said...
Why confuse everything with hex markup? The answer to
the simplest solution is in the ASCII translation of the
data.

Send
30h 30h 76h 50h 4Bh 0Dh is in ASCII "00vPK\r"


Receive
30h 30h 76h 50h 4Bh 31h 0Dh is in ASCII "00vPK1\r"

One line will send and get response.

var str = serial.match("00vPK\r","\r",200);

Then use substring to strip off what you don't need.

var sResult = str.substring(5,1); // leaves you with a
string of "1" or likely "0" if unit is not ready.

Got ya.. is the 200 a time out in ms?
Pronto still one of the best Wi-Fi Remotes,
www.ikonavs.co.nz and [Link: axiumcontrol.com] Axium Control


Hosting Services by ipHouse