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 3 made on Sunday December 17, 2017 at 05:51
peteS
Long Time Member
Joined:
Posts:
June 2003
20
Hi Rene

Yes, with a bit of searching and judicious use of Wireshark, I got it sorted. Bottom line is that socket.write doesn't support writing a byte array - hence the []. Looking at wireshark, it just sends nothing at all. You need to convert it to a string.

Use ...

function ArrayToString(arr){

var stringToSend = '';
var i;
for (i = 0; i < arr.length; i++)
stringToSend += String.fromCharCode(arr[i]);
return stringToSend
}

then call

socket.write (ArrayToString([0x04,0x01,0x00,0x00,0x00,0x00,0xE0,0x00]));

Now have a fully working IP control version for the Sky box ...

pete S


Hosting Services by ipHouse