19.06.2017, 20:22
I am attempting to change video sources on this Sony projector but the hex code I am using makes no sense. Here is the java code that was written for me previously that will successfully turn the projector on and off:
serial = '02 0A 53 4F 4E 59 00 17 2E 00';
tcpclient(projectorIP, 53484, serial , function onResponse(response)
{
console.log(response);
});//Sony PJLink ON
serial = '02 0A 53 4F 4E 59 00 17 2F 00';
tcpclient(projectorIP, 53484, serial, function onResponse(response)
{
console.log(response);
});//Sony PJLink Off
I have done a hex-to-ascii conversion and this is how the above code reads:
Turn projector ON hex = "02 0A 53 4F 4E 59 00 17 2F 00" = (ascii) "\02\0aSONY\00\17/\00"
Turn projector OFF hex = "02 0A 53 4F 4E 59 00 17 2E 00" = (ascii) "\02\0aSONY\00\17.\00"
So, the on/off command is just a "." or a "/" What I need is code to switch between HD1 and DVI. Any ideas? Thanks!
serial = '02 0A 53 4F 4E 59 00 17 2E 00';
tcpclient(projectorIP, 53484, serial , function onResponse(response)
{
console.log(response);
});//Sony PJLink ON
serial = '02 0A 53 4F 4E 59 00 17 2F 00';
tcpclient(projectorIP, 53484, serial, function onResponse(response)
{
console.log(response);
});//Sony PJLink Off
I have done a hex-to-ascii conversion and this is how the above code reads:
Turn projector ON hex = "02 0A 53 4F 4E 59 00 17 2F 00" = (ascii) "\02\0aSONY\00\17/\00"
Turn projector OFF hex = "02 0A 53 4F 4E 59 00 17 2E 00" = (ascii) "\02\0aSONY\00\17.\00"
So, the on/off command is just a "." or a "/" What I need is code to switch between HD1 and DVI. Any ideas? Thanks!