Ginsonic
April 3rd, 2006, 01:58 AM
Hi,
I would like to control my new Sony Ruby via TCP/IP commands. In the manual commands are described for example like this: \x02\x0aSONY\x00\x17\x29\x00 , where \x means hexvalues. I tried this lua program with no success:
----------------
function CallBck(p1,p2)
if ( p2 == gip.CONNECTIONCLOSED ) then
print("Sony VPL-VW100 - Connection closed")
return
end
if ( p2 == gip.CONNECTIONESTABLISHED ) then
if ( p1 == 0 ) then
print("Sony VPL-VW100 - Connection opened")
else
print("Sony VPL-VW100 - Connection failed: ", p1)
end
return
end
end
c = gip.Open('192.168.0.22',53484)
c:Callback(2, '\r', 3000, CallBck)
SendData = "020aSONY00172900"
c:Write(SendData)
----------------
So does anybody know, what is wrong here, and if this is the correct way to send the hexvalues to the beamer ?
Many thanks
I would like to control my new Sony Ruby via TCP/IP commands. In the manual commands are described for example like this: \x02\x0aSONY\x00\x17\x29\x00 , where \x means hexvalues. I tried this lua program with no success:
----------------
function CallBck(p1,p2)
if ( p2 == gip.CONNECTIONCLOSED ) then
print("Sony VPL-VW100 - Connection closed")
return
end
if ( p2 == gip.CONNECTIONESTABLISHED ) then
if ( p1 == 0 ) then
print("Sony VPL-VW100 - Connection opened")
else
print("Sony VPL-VW100 - Connection failed: ", p1)
end
return
end
end
c = gip.Open('192.168.0.22',53484)
c:Callback(2, '\r', 3000, CallBck)
SendData = "020aSONY00172900"
c:Write(SendData)
----------------
So does anybody know, what is wrong here, and if this is the correct way to send the hexvalues to the beamer ?
Many thanks