I’m trying to connect Vera to my network connected RFXtrx433 transceiver via its IP and Port *under UI7, however I don’t seem to have the option ? (Compared to what is available under UI5)
My USB/Serial RFXtrx433 deviice is connected to a RaspPi that’s running Ser2net to allow it to be accessible over the network…
thank - I assumed that was what you meant - but I thought it was best to check (just in case you knew of some hidden menu somewhere:) )
I’ve actually had the IP:Port listed in the IP field within the variable tab since i noticed there was no option under the apps/Dev/Serial Port Configuration.
As that didn’t work - I raised the opening post above
Still working in this and leveraging details from the other post @tinman shared earlier, I can see the port listed, in the L_RFXtrx.lua file, which left as is, I assume makes that a hard coded/requirement.
-- Function called at plugin startup
function startup(lul_device)
THIS_DEVICE = lul_device
task("Starting RFXtrx device: " .. tostring(lul_device), TASK_SUCCESS)
local debugLogs = getVariable(lul_device, tabVars.VAR_DEBUG_LOGS)
if (debugLogs == nil or tonumber(debugLogs) == nil) then
setVariable(lul_device, tabVars.VAR_DEBUG_LOGS, "0")
end
if (getVariable(lul_device, tabVars.VAR_DEBUG_LOGS) == "1") then
DEBUG_MODE = true
end
local ipAddress = luup.devices[lul_device].ip or ""
if (ipAddress == "")
then
local IOdevice = getVariable(lul_device, tabVars.VAR_IO_DEVICE)
if ((luup.io.is_connected(lul_device) == false) or (IOdevice == nil))
then
error("Serial port not connected. First choose the seial port and restart the lua engine.")
task("Choose the Serial Port", TASK_ERROR_PERM)
return false
end
log("Serial port is connected")
-- Check serial settings
local baud = getVariable(tonumber(IOdevice), tabVars.VAR_BAUD)
if ((baud == nil) or (baud ~= "38400"))
then
error("Incorrect setup of the serial port. Select 38400 bauds.")
task("Select 38400 bauds for the Serial Port", TASK_ERROR_PERM)
return false
end
log("Baud is 38400")
else
log("Connecting to remote RFXtrx...")
luup.io.open(lul_device, ipAddress, 10000)
if (luup.io.is_connected(lul_device) == false)
then
error("Remote connection failed. First connect the LAN RFXtrx to the LAN or start the virtual serial port emulator on the remote machine where the USB RFXtrx is attached.")
task("Connect the RFXtrx to the LAN", TASK_ERROR_PERM)
return false
end
log("Connection is established")
end
So, changing my ser2net configuration to make the port 10000 too, it seems to rectify the problem.
I’m not sure what version of the RFXtrx plugin you’re using but it’s not the latest. The latest version will use whatever port number (IPPort) you set the the RFXtrx variables tab.