I have take a look at code .
the error
Z-Wave interface is not enabled or couldn't open port !
in zwave commander is returned by "IF NOT Main.hZWave"
Code: Select all
IF NOT Main.bZWaveEnabled OR IF NOT Main.hZWave THEN
Message.Info(("Z-Wave interface is not enabled\nor couldn't open port!"))
ELSE
maybe because in Main.module
Code: Select all
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' open Z-Wave serial port and initialize
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PRIVATE SUB Setup_ZWave()
IF bZWaveEnabled THEN
WriteLog(("Z-Wave support enabled."))
IF bServer THEN
' create a new Z-Wave class instance
hZWave = NEW CZWave
' set the properties
WITH hZWave
.Port = sZWaveSerialPort
.Baud = sZWaveBaudrate
.ZWaveDebug = bZWaveDebug
.ReloadNodes = bZWaveReloadNodes
.UseOZW = bZWaveUseOZW
END WITH
' connect to the serial port
IF hZWave.Connect() THEN
WriteLog(("Z-Wave interface connected to Port ") & sZWaveSerialPort)
hZWave.InitZWave()
ELSE
WriteLog(("ERROR: Z-Wave interface FAILED to connect to Port ") & sZWaveSerialPort)
hZWave = NULL
END IF
END IF
ELSE
IF bMainDebug THEN WriteLog(("Z-Wave support disabled."))
END IF
END
maybe "IF bServer THEN" run only for server instance ?
->"Main.hZWave" is not initialized here ?
maybe it does not get server / separate instance ?
With other test I have see this :
"Control" buttons can activate zwave modules
but "Actions" can't and return :
Code: Select all
2011/12/30 00:17:03 [Devices] Can't control device 'Lampe test' because Z-Wave interface is disabled!