Hi,
Looking for some help with some VD code for a Global cache GC-100-12 as I can seem to get anything to work
My TV is connected to IR Port 3 on the gc device
i used the GCIRE learner for the power button on the remote
This is the string I got
sendir,1:1,0,40000,1,1,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,4018
in the iLearn app the first two lines are colored - not sure what this means but I took the whole string.....
I changed the second number after the sendir from
sendir,1:1
to
sendir,1:3 as I am using port 3 on the GC unit
(I also changed this to 1, 2, 3, 4, 5, 6 and none of them work)
I created a VD with the following
I included both 0x0D and 0x0D0x0A at the end of the sent string and neither worked
I also tried some lua code in a VD with the /r at the end and no luck with that either
fibaro:log("Connecting...");
fibaro:debug("Connecting...");
local selfId = fibaro:getSelfId();
local ip = "192.168.1.111";
local port = 4998;
tcpSocket = Net.FTcpSocket(ip, port);
tcpSocket:setReadTimeout(1000);
-- POWER --
tcpSocket:write("sendir,1:3,0,40000,1,1,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,1029,
96,23,48,23,24,23,48,23,24,23,48,23,24,23,24,23,48,23,24,23,24,23,24,23,24,4018\r");
fibaro:sleep(2000);
result, err = tcpSocket:read();
tcpSocket:write("END");
if (err == 0) then
fibaro:log("transfer OK");
fibaro:debug("transfer OK");
fibaro:log("Please Wait...");
fibaro:sleep(5000);
else
fibaro:log("transfer failed");
fibaro:debug("transfer failed");
end
tcpSocket:disconnect();
finally i tried a reboot in case I had too many socket connections open but that didnt make any difference
Would somebody that has this working have a look and perhaps let me know where I have gone wrong
Thanks
-frustrated