Page 1 of 1
RFXtrx shared over LAN interface - Firmware upgrade not possible?
Posted: Wednesday 31 August 2016 14:06
by MacJL
Hello,
I've set up a Rfxcom through LAN interface with 'socat'. All is working fine, except I can't upgrade the Rfxcom firmware anymore. Is that normal?
Here is my conf on the remote Rfxcom side :
Code: Select all
socat -ls -d -d FILE:/dev/ttyUSB1,b38400,raw,echo=0 TCP-LISTEN:1234,reuseaddr
And at the domoticz side :
Code: Select all
Name: RFXCOM
Type: RFXCOM - RFXtrx shared over LAN interface
Data Timeout: 1 minute
Remote Address: socat-rfxcom
Port: 1234
When I trie to upgrade firmware to version 1_1006a, I have this error message : "Problem updating firmware", but nothing more in the logs.
Does someone have the same issue?
Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?
Posted: Wednesday 21 December 2016 21:20
by MacJL
Nobody is using rfxcom over LAN interface?
Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?
Posted: Thursday 22 December 2016 11:29
by b_weijenberg
Is it an option to disconnect the RFXtrx temporarily from Domoticz and use RFXflash on a Windows system?
Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?
Posted: Thursday 22 December 2016 11:46
by MacJL
I'm not using Windows. I found another solution for the update, by temporary connecting the RFXCOM directly to domoticz with USB. But I'm sure the fact I can't update the RFXCOM when it's shared via LAN interface is a bug, that should be addressed.
Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?
Posted: Thursday 24 August 2017 18:55
by ben53252642
MacJL wrote: Wednesday 31 August 2016 14:06
Here is my conf on the remote Rfxcom side :
Code: Select all
socat -ls -d -d FILE:/dev/ttyUSB1,b38400,raw,echo=0 TCP-LISTEN:1234,reuseaddr
And at the domoticz side :
Code: Select all
Name: RFXCOM
Type: RFXCOM - RFXtrx shared over LAN interface
Data Timeout: 1 minute
Remote Address: socat-rfxcom
Port: 1234
Thank you for sharing this, it's been extremely useful.
I noticed that the socat session terminates when Domoticz stops so I wrote this bash script to automatically restart it.
Code: Select all
#!/bin/bash
while true; do
# Check if socat is running for RFXCOM
if pgrep -f 'rfxcomsocatserver' >/dev/null 2>&1; then
echo "rfxcom socat server is running"
else
echo "starting rfxcom socat server..."
/usr/bin/screen -S rfxcomsocatserver -d -m socat -ls -d -d FILE:/dev/ttyUSB0,b38400,raw,echo=0 TCP-LISTEN:1234,reuseaddr
fi
sleep 1
done