RFLINK stopped working

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
redfirebrooks
Posts: 40
Joined: Sunday 07 January 2018 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

RFLINK stopped working

Post by redfirebrooks »

Hi
for an unknown reason my DIY RFLINK stoppes working.
I rebooted several time but it as always the same issue.
At boot it looks like is starts (the led of the 433 receiver blinks) and after few seconds it stops.
Here my logs :

Code: Select all

2018-09-14 07:17:54.374 Sunrise: 07:26:00 SunSet: 20:07:00
2018-09-14 07:17:54.374 Day length: 12:41:00 Sun at south: 13:05:00
2018-09-14 07:17:54.374 Civil twilight start: 06:54:00 Civil twilight end: 20:39:00
2018-09-14 07:17:54.374 Nautical twilight start: 06:16:00 Nautical twilight end: 21:17:00
2018-09-14 07:17:54.374 Astronomical twilight start: 05:37:00 Astronomical twilight end: 21:57:00
2018-09-14 07:17:54.936 Active notification Subsystems: pushbullet (1/13)
2018-09-14 07:17:54.004 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2018-09-14 07:17:54.017 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2018-09-14 07:17:54.027 Status: Startup Path: /home/pi/domoticz/
2018-09-14 07:17:54.374 Status: EventSystem: reset all events...
2018-09-14 07:17:54.910 Status: PluginSystem: Started, Python version '3.5.3'.
2018-09-14 07:17:55.195 Starting shared server on: :::6144
2018-09-14 07:17:55.005 Status: WebServer(HTTP) started on address: :: with port 8080
2018-09-14 07:17:55.132 Status: WebServer(SSL) started on address: :: with port 443
2018-09-14 07:17:55.137 Status: Proxymanager started.
2018-09-14 07:17:55.195 Status: TCPServer: shared server started...
2018-09-14 07:17:55.196 Status: RxQueue: queue worker started...
2018-09-14 07:17:57.207 Status: AppLamp: Worker Started...
2018-09-14 07:17:57.207 Status: (IKEA-TRADFRI) Started.
2018-09-14 07:17:57.210 Status: Hardware Monitor: Started
2018-09-14 07:17:57.218 Status: DarkSky: Started...
2018-09-14 07:17:57.234 Status: EventSystem: reset all events...
2018-09-14 07:17:57.235 Status: EventSystem: reset all device statuses...
2018-09-14 07:17:57.398 Status: PluginSystem: Entering work loop.
2018-09-14 07:17:57.400 Status: RFLink: Using serial port: /dev/ttyUSB0
2018-09-14 07:17:57.669 Status: Python EventSystem: Initalizing event module.
2018-09-14 07:17:57.670 Status: EventSystem: Started
2018-09-14 07:17:57.670 Status: EventSystem: Queue thread started...
2018-09-14 07:17:58.206 (IKEA-TRADFRI) Failed to connect to IKEA tradfri COAP-adapter! Status: 111 Description: Connection refused
2018-09-14 07:17:58.206 (IKEA-TRADFRI) Device has disconnected
2018-09-14 07:17:58.088 Status: (IKEA-TRADFRI) Entering work loop.
2018-09-14 07:17:58.090 Status: (IKEA-TRADFRI) Initialized version 1.0.6, author 'moroen'
2018-09-14 07:17:58.662 Status: AppLamp: Bridge found!...
2018-09-14 07:18:08.572 (Météo) Temp + Humidity + Baro (THB)
2018-09-14 07:18:08.580 (Météo) Wind (Unknown)
2018-09-14 07:18:08.587 (Météo) UV (UV Index)
2018-09-14 07:18:08.596 (Météo) Rain (Unknown)
2018-09-14 07:18:08.605 (Météo) General/Visibility (Unknown)
2018-09-14 07:18:08.612 (Météo) General/Custom Sensor (Ozone Sensor)
2018-09-14 07:18:11.661 (IKEA-TRADFRI) Connected successfully to: 192.168.1.250
2018-09-14 07:18:11.003 Status: Incoming connection from: 127.0.0.1
2018-09-14 07:31:59.284 Status: User: Admin initiated a switch command (25/Lampe Salon/On)
2018-09-14 07:32:02.938 Status: User: Admin initiated a switch command (25/Lampe Salon/Off)
2018-09-14 07:32:05.486 Status: User: Admin initiated a switch command (25/Lampe Salon/On)
2018-09-14 07:32:45.330 Status: RFLink: serial retrying in 30 seconds...
2018-09-14 07:32:45.176 Error: Serial Port closed!... Error: End of file
2018-09-14 07:33:15.146 Status: RFLink: Using serial port: /dev/ttyUSB0
The last lines show a change of USB port.

What is wrong in your opinion and how to fix it ?
Version: 2024.1
Build Hash: 5279c8261
Compile Date: 2024-01-01 12:59:22
dzVents Version: 3.1.8
Python Version: 3.9.2
Raspbian Bullseye
Raspberry3B+
RFLINK R48.4
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: RFLINK stopped working

Post by EddyG »

Do a 'dmesg | grep tty' and find the port which states 'ch341'
Change in Domoticz hardware tab the RFlink to that port.
Tonio16
Posts: 45
Joined: Friday 23 February 2018 20:38
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: RFLINK stopped working

Post by Tonio16 »

Hello

Do you have other USB devices on the PI? Do you use persistent name for these USB devices?

Regards

Antoine
redfirebrooks
Posts: 40
Joined: Sunday 07 January 2018 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLINK stopped working

Post by redfirebrooks »

EddyG wrote: Friday 14 September 2018 9:14 Do a 'dmesg | grep tty' and find the port which states 'ch341'
Change in Domoticz hardware tab the RFlink to that port.
Hello,

I have this
[ 0.000804] console [tty1] enabled
[ 0.832625] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 5.428870] usb 1-1.5: ch341-uart converter now attached to ttyUSB0
and it is set to ttyUSB0 on Domoticz

No other USB device on the Pi and no persistent name I guess (never set one)

Still no luck

Setting the port to ttyAMA0 the receiving led blinks. as soon as is set the ttyUSB0 after few seconds the led stops blinking.
Version: 2024.1
Build Hash: 5279c8261
Compile Date: 2024-01-01 12:59:22
dzVents Version: 3.1.8
Python Version: 3.9.2
Raspbian Bullseye
Raspberry3B+
RFLINK R48.4
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: RFLINK stopped working

Post by EddyG »

Link about persistentUSBDevices: https://www.domoticz.com/wiki/PersistentUSBDevices You could give it a try.
Change the USB connection in an other port. Did you try all the Serialports which are present in the pulldown in Domoticz?
Did you remove power from Domoticz and RFLink, wait 10 sec. and apply power again?
Reflash RFLink could be a possibility.
redfirebrooks
Posts: 40
Joined: Sunday 07 January 2018 15:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLINK stopped working

Post by redfirebrooks »

Hi, thanks for your tips.
But still no luck... I will try a reflash.

Here are the logs when I change serial ports

Code: Select all

2018-09-15 11:23:09.595 Status: RFLink: Serial Worker stopped...
2018-09-15 11:23:09.806 Status: RFLink: Using serial port: /dev/serial1
2018-09-15 11:23:09.807 Error: Serial Port closed!... Error: End of file
2018-09-15 11:23:10.007 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:23:39.821 Status: RFLink: Using serial port: /dev/serial1
2018-09-15 11:23:39.821 Error: Serial Port closed!... Error: End of file
2018-09-15 11:23:40.021 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:24:09.835 Status: RFLink: Using serial port: /dev/serial1
2018-09-15 11:24:09.835 Error: Serial Port closed!... Error: End of file
2018-09-15 11:24:10.035 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:24:25.042 Status: RFLink: Serial Worker stopped...
2018-09-15 11:24:25.253 Status: RFLink: Using serial port: /dev/ttyAMA0
2018-09-15 11:24:25.453 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:24:25.253 Error: Serial Port closed!... Error: End of file
2018-09-15 11:24:55.268 Status: RFLink: Using serial port: /dev/ttyAMA0
2018-09-15 11:24:55.468 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:24:55.268 Error: Serial Port closed!... Error: End of file
2018-09-15 11:25:25.283 Status: RFLink: Using serial port: /dev/ttyAMA0
2018-09-15 11:25:25.483 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:25:25.283 Error: Serial Port closed!... Error: End of file
2018-09-15 11:25:55.297 Status: RFLink: Using serial port: /dev/ttyAMA0
2018-09-15 11:25:55.497 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:25:55.297 Error: Serial Port closed!... Error: End of file
2018-09-15 11:26:20.943 Status: Incoming connection from: 127.0.0.1
2018-09-15 11:26:25.310 Status: RFLink: Using serial port: /dev/ttyAMA0
2018-09-15 11:26:25.511 Status: RFLink: serial retrying in 30 seconds...
2018-09-15 11:26:25.310 Error: Serial Port closed!... Error: End of file
2018-09-15 11:26:37.135 (Météo) Temp + Humidity + Baro (THB)
2018-09-15 11:26:37.141 (Météo) Wind (Unknown)
2018-09-15 11:26:37.145 (Météo) UV (UV Index)
2018-09-15 11:26:37.151 (Météo) Rain (Unknown)
2018-09-15 11:26:37.156 (Météo) General/Visibility (Unknown)
2018-09-15 11:26:37.161 (Météo) General/Custom Sensor (Ozone Sensor)
2018-09-15 11:26:41.718 Status: RFLink: Serial Worker stopped...
2018-09-15 11:26:41.930 Status: RFLink: Using serial port: /dev/ttyUSB0
Version: 2024.1
Build Hash: 5279c8261
Compile Date: 2024-01-01 12:59:22
dzVents Version: 3.1.8
Python Version: 3.9.2
Raspbian Bullseye
Raspberry3B+
RFLINK R48.4
Tonio16
Posts: 45
Joined: Friday 23 February 2018 20:38
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: RFLINK stopped working

Post by Tonio16 »

Recently I had some troubles. I changed the USB cable and it looks to be solved. I would give a try, if I were you, you would avoid to start again from scratch.

Regards
Antoine
Iznogoud
Posts: 1
Joined: Monday 09 May 2022 6:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLINK stopped working

Post by Iznogoud »

Maybe i found a solution.

I turned off the serial port of the raspberry in the raspberry pi configuration -> interfaces -> then disable serial port. And then reboot..

after reboot turn on and restart

Now start domotica again.
PaulMus
Posts: 1
Joined: Friday 19 January 2024 16:38
Target OS: Linux
Domoticz version: 2024.2
Contact:

Re: RFLINK stopped working

Post by PaulMus »

I have an RFLink transceiver, connected to a USB port, that stopped working after a system reboot.
The Domoticz log showed "Error opening serial port" repeatedly.
I was able to update the firmware to version 1_1 revision 51, so the transceiver's serial interface works. It looks like a host computer issue (Dell Precision 3460 running Ubuntu 20_04 LTS), but I have not been able to find the root cause.
I also have a Z-Wave transceiver plugged into another USB port, which is functioning normally.

When I tried to open the serial port manually:

Code: Select all

stty -F /dev/ttyACM1 -a
it gave me an input/out error
However, when I repeated this attempt several times, it eventually started to work normally, showing a baud rate of 57600.

I ended up with a bash script that is run automatically after each system boot:

Code: Select all

# make RFLink available
resultMessage=""
resultCount="0"
while [ $resultCount -lt 1 ]
do
   resultMessage=$(stty -F /dev/ttyACM1 -a)
   resultCount=$(echo $resultMessage | grep -c "speed 57600 baud")
done
(of course I have replaced /dev/ttyACM1 by the /dev/serial/by-id/... designation but the forum software won't allow me to use it in this post)

It is not a pretty work around, but it works and I couldn't find another after considerable research. If someone has a better idea...
User avatar
Xenomes
Posts: 385
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: RFLINK stopped working

Post by Xenomes »

Try to use the serial ID provided by 'by-id,' such as '/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_85644443230000000000-if00'. After a reboot, this identifier remains constant, whereas '/dev/ttyACM1' may have a changing last digit.
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests