RFXtrx shared over LAN interface - Firmware upgrade not possible?

Moderator: leecollings

Post Reply
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post 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?
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post by MacJL »

Nobody is using rfxcom over LAN interface?
b_weijenberg
Posts: 518
Joined: Friday 12 July 2013 18:13
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post by b_weijenberg »

Is it an option to disconnect the RFXtrx temporarily from Domoticz and use RFXflash on a Windows system?
RFX-433, RFX-433EMC, RFX-868
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post 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.
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post 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
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest