RFXCOM XL loses its serial connection

Moderator: leecollings

Post Reply
User avatar
pgielen
Posts: 90
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

RFXCOM XL loses its serial connection

Post by pgielen »

System: Raspberry Pi 4B
OS: Raspbian with latest updates installed
Domoticz version: V2020.2 build 12927
RFXCOM XL firmware: 1043

My RFXCOM XL seems to be losing its serial connection to Domoticz frequently. At least that is what I think happens when I get the following kind of messages in the log file:

Code: Select all

2021-02-09 17:35:23.699 Error: Serial Port closed!... Error: End of file
2021-02-09 17:35:23.909 Status: RFXCOM: retrying in 30 seconds...
2021-02-09 17:35:52.919 Status: RFXCOM: Using serial port: /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO32GFOK-if00-port0
I tried the command

Code: Select all

dmesg | grep tty
The result seems to suggest RFXCOM, which is using a serial-by-id, is in fact connected to ttyUSB0, and disconnects and reconnects by itself.

Code: Select all

 
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=DC:A6:32:7E:CB:38 vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000  console=tty1 root=PARTUUID=02e41fc7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.001048] printk: console [tty1] enabled
[    1.168055] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.174682] fe215040.serial: ttyS0 at MMIO 0x0 (irq = 30, base_baud = 62500000) is a 16550
[    4.491265] systemd[1]: Created slice system-getty.slice.
[    6.921253] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
[328066.509841] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[328066.512787] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[328066.527177] ftdi_sio ttyUSB0: error from flowcontrol urb
[328066.527974] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[329696.253766] usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0
This is weird. However, the devices connected to the RFXCOM (mostly weather station related) still do send their status updates.

Any ideas?
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
b_weijenberg
Posts: 517
Joined: Friday 12 July 2013 18:13
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: RFXCOM XL loses its serial connection

Post by b_weijenberg »

see chapter 21.3 in the RFXtrx User Guide.
In most cases a bad quality power supply on the RPI.
RFXtrx433, RFXtrx433E, RFXtrx433XL, RFX433XL, RFX868XL
User avatar
pgielen
Posts: 90
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

Re: RFXCOM XL loses its serial connection

Post by pgielen »

b_weijenberg wrote: Wednesday 10 February 2021 9:36 In most cases a bad quality power supply on the RPI.
Could be. I am using the official RPi4B power supply but there also is an external SDD connected, which works good, but both devices connected may be too much even if the RPi4B is advertised as being able to deliver power over USB. Will try it soon in a new system...
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
User avatar
pgielen
Posts: 90
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

Re: RFXCOM XL loses its serial connection

Post by pgielen »

Well, just installed a new 4A power supply and I still get the 'Error: Serial Port closed!... Error: End of file' It's strange that I did not experience this kind of messages earlier, not on my RPI and not on my laptop. I still don't get this on my laptop BTW, using the same cable, only on the RPi running Domoticz.
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests