RFLink: Error opening serial port! Topic is solved

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
arnodu59
Posts: 4
Joined: Wednesday 16 November 2016 12:35
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

RFLink: Error opening serial port!

Post by arnodu59 »

Hello everyone,

(Sorry... Google translate :D )

It's been 3 years since I was running with RFlink without any problem.
But since September 2, impossible to communicate with the arduino! (I changed the USB cable and even the arduino in doubt) on a Raspberry 4 with raspbian above
But nothing works!

In domoticz, you can not select a "serial" port when configuring hardware.

domoticz Version :
Version: 4.11280
Build Hash: 367ff3426
Compile Date: 2019-09-05 09:21:59
dzVents Version: 2.4.28

Linux recognizes the arduino :

Code: Select all

pi@raspberrypi:~/domoticz $ lsusb -v
Bus 001 Device 004: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x2341 Arduino SA
  idProduct          0x0042 Mega 2560 R3 (CDC ACM)
  bcdDevice            0.01
  iManufacturer           1

Will any of you have a solution for me: D

Thank you!
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: RFLink: Error opening serial port!

Post by sincze »

Mmm
Can you try the following while having a terminal open:

- Unplug USB
- Replug USB in Pi.
- Type

Code: Select all

dmesg | tail
There should be something mentioned about your USB port.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
arnodu59
Posts: 4
Joined: Wednesday 16 November 2016 12:35
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: RFLink: Error opening serial port!

Post by arnodu59 »

Thanks for your help :-)

This command return :

Code: Select all

pi@raspberrypi:~ $ dmesg |tail
[    9.841022] random: crng init done
[    9.841036] random: 7 urandom warning(s) missed due to ratelimiting
[   12.494954] uart-pl011 fe201000.serial: no DMA platform data
[   12.927777] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k FS
[41761.739826] usb 1-1.3: USB disconnect, device number 3
[41767.506014] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[41767.650890] usb 1-1.3: New USB device found, idVendor=2341, idProduct=0042, bcdDevice= 0.01
[41767.650906] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[41767.650919] usb 1-1.3: Manufacturer: Arduino (www.arduino.cc)
[41767.650930] usb 1-1.3: SerialNumber: 558383236353517022E1
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: RFLink: Error opening serial port!

Post by sincze »

Clearly visible is the DIsconnect indeed.
I'm missing the assignment of /dev/ttyUSBx to this device.

Code: Select all

ls /dev/ttyUSB*
Will show nothing I guess. So there is your known 'problem'.

The device serial should be known indeed by the Pi.
https://usb-ids.gowdy.us/read/UD/2341

Let's go for:

-Unplug

Code: Select all

sudo modprobe ftdi_sio
-Plug in the device

And check with

Code: Select all

dmesg | tail
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
arnodu59
Posts: 4
Joined: Wednesday 16 November 2016 12:35
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: RFLink: Error opening serial port!

Post by arnodu59 »

Thanks for help...
But the manipulations do not work

Code: Select all

pi@raspberrypi:~ $ sudo modprobe ftdi_sio
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.58-v7l+/modules.dep.bin'
modprobe: FATAL: Module ftdi_sio not found in directory /lib/modules/4.19.58-v7l+

pi@raspberrypi:/lib/modules $ uname -r
4.19.58-v7l+

pi@raspberrypi:~ $ lsmod
Module                  Size  Used by

pi@raspberrypi:~ $ ls /lib/modules/
4.19.58-v7l+  4.19.66+  4.19.66-v7+  4.19.66-v7l+
The reposit /lib/modules/4.19.58-v7l+ is empty...

how to boot on the kernel 4.19.66+ ?

Thanks !
arnodu59
Posts: 4
Joined: Wednesday 16 November 2016 12:35
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: RFLink: Error opening serial port!

Post by arnodu59 »

I just found the solution ...

I boot on an nfs server. I just transferred the files from the / boot folder to my SD card.

no problem with the RFLink module after reboot

Thank you again for your help !

For information, on RPI4 the way to the USB port is

Code: Select all

/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_558383236353517022E1-if00
Bertone
Posts: 20
Joined: Saturday 21 March 2020 15:25
Target OS: Windows
Domoticz version: 2020.2
Location: France
Contact:

Re: RFLink: Error opening serial port!

Post by Bertone »

Hi @arnodu59,
I think I have the same issue. Could you give me more informations for the solution ?
En français si tu préfères en MP.
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest