Hi,
I have managed to get an Itach flex (wired) working with via the GC100 App (using the modifications another user has posted). When I tried to create a second instance of the App and add another Flex (wireless) I started getting an error during Lua startup for the second device. I’ve attached the log below.
I was able to get round it by commenting out the offending piece of code as I am only using the Flex for IR at the moment, but it would be nice to get it fully functional.
I have tried swapping the IPs in the GC100 devices between the working Flex and the one that doesn’t and the issue moves with the Flex, which makes me think it is something to do with the hardware, but I can’t see what it could be. The only difference between them is the wired one works fine and the wireless once doesn’t.
Does anyone have any ideas / suggestions?
Thanks!
Here is the offending (modified) section of code from I_GC100.xml:
[code] for iModule,tData in pairs(lug_modules) do
– Modif FLEX
if( tData.type==“IR” or tData.type==“IRTRIPORT” ) then
if luup.io.write(“getstate,” … tostring(tData.module) … “:” … tostring(tData.unit) )==false then
luup.log(“cannot send getstate”,1)
return false,‘Cannot get state’,‘GC100’
end
incoming_data = luup.io.read();
-- The next part causes the error
-- if( string.find(incoming_data,"state," .. tostring(tData.module) .. ":" .. tostring(tData.unit)) ) then
-- tData.type = "TTL"
-- end
end[/code]
Error log:
50 03/02/14 10:21:47.203 luup_log:3: starting device: 3 <0x2b8b5680>
50 03/02/14 10:21:47.204 luup_log:3: got devices <0x2b8b5680>
50 03/02/14 10:21:47.307 luup_log:3: module0 port 0 type ETHERNET device: 3 <0x2b8b5680>
50 03/02/14 10:21:47.317 luup_log:3: module1 port 1 type IRTRIPORT device: 3 <0x2b8b5680>
50 03/02/14 10:21:47.318 luup_log:3: parse device: 6 module: 1 unit: 1 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.318 luup_log:3: parse device: 4 module: 1 unit: 2 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.319 luup_log:3: parse device: 5 module: 1 unit: 3 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.327 luup_log:3: num modules 0 <0x2b8b5680>
50 03/02/14 10:21:47.622 luup_log:3: ValidModules: 3 <0x2b8b5680>
06 03/02/14 10:21:47.623 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:HaDevice1 variable: CommFailure was: 0 now: 0 #hooks: 0 upnp: 0 v:0x98fa08/NONE duplicate:1 <0x2b8b5680>
06 03/02/14 10:21:47.623 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:HaDevice1 variable: MaxTime was: 0 now: 0 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b8b5680>
50 03/02/14 10:21:47.736 luup_log:9: starting device: 9 <0x2b8b5680>
50 03/02/14 10:21:47.737 luup_log:9: got devices <0x2b8b5680>
50 03/02/14 10:21:47.858 luup_log:9: module0 port 0 type WIFI device: 9 <0x2b8b5680>
50 03/02/14 10:21:47.869 luup_log:9: module1 port 1 type IRTRIPORT device: 9 <0x2b8b5680>
50 03/02/14 10:21:47.869 luup_log:9: parse device: 12 module: 1 unit: 1 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.870 luup_log:9: parse device: 10 module: 1 unit: 2 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.870 luup_log:9: parse device: 11 module: 1 unit: 3 type: IRTRIPORT <0x2b8b5680>
50 03/02/14 10:21:47.879 luup_log:9: num modules 0 <0x2b8b5680>
01 03/02/14 10:21:57.880 LuaInterface::CallFunction_Startup-1 device 9 function lug_startup failed [string "..."]:134: bad argument #1 to 'find' (string expected, got nil) __LEAK__ this:69632 start:69632 to 0xa25000 <0x2b8b5680>
01 03/02/14 10:21:57.881 LuImplementation::StartLua running startup code for 9 I_GC100.xml failed <0x2b8b5680>