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 4 made on Thursday May 21, 2020 at 19:14
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,996
3 way handshake means wait for ready from the projector, send an intent to send a request and wait for controller to acknowledge, then send the command.

This is just a standard TCP/IP socket with the projector listening for new connections on port Port 20554.


Create the TCP-IP connect from Pronto on port 20554. Wait until you get PJ_OK. Then send the PJ_REQ. Wait for receipt of the PJ_ACK. Finally, send the command you want to send and according to the documentation, projector will close the socket after 5 seconds.

To quote you...

"I'm not able to receive the PJ_OK from JVC after trying a TCP socket, it reports always "socket error". JVC is working correctly, because if try connection by Telnet, i obtain the PJ_OK answer."


If you send PJ_REQ from telnet, do you get back a PJ_ACK? If you can make this work (ensuring you don't breach the 5 second rule) via telnet(might get stuck sending hex chars below), you should be able to make this work from ProntoScript

Sounds like your issue is with your script. A picture, or in this case, the code you are trying to test with, is worth 1000 words.


Note that the commands you send are NOT strings of numbers.
The are hex values. So when you want to send them to the socket, you'll need to use string concatenation.

var cmdString = "";
cmdString += String.fromCharCode(0x06);
cmdString += String.fromCharCode([next hex digit pair]);
cmdString += String.fromCharCode([next hex digit pair]);
cmdString += String.fromCharCode([next hex digit pair]);
// 0x0A is an ASCII LineFeed character
cmdString += String.fromCharCode(0x0A);

sock.write(cmdString);


Lyndel

Last edited by Lyndel McGee on May 21, 2020 20:02.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse