RFXtrx shared over LAN interface - Firmware upgrade not possible?

Post Reply
MacJL
Posts: 48
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 » Wednesday 31 August 2016 14:06

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: 48
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 » Wednesday 21 December 2016 22:20

Nobody is using rfxcom over LAN interface?

b_weijenberg
Posts: 678
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 » Thursday 22 December 2016 12:29

Is it an option to disconnect the RFXtrx temporarily from Domoticz and use RFXflash on a Windows system?
RFXtrx433, RFXtrx433E

MacJL
Posts: 48
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 » Thursday 22 December 2016 12:46

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: 420
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 » Thursday 24 August 2017 18:55

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest