Page 1 of 1

RFLink: Error opening serial port!

Posted: Saturday 07 September 2019 19:45
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!

Re: RFLink: Error opening serial port!

Posted: Sunday 08 September 2019 11:45
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.

Re: RFLink: Error opening serial port!

Posted: Sunday 08 September 2019 20:53
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

Re: RFLink: Error opening serial port!

Posted: Monday 09 September 2019 10:26
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

Re: RFLink: Error opening serial port!

Posted: Monday 09 September 2019 20:12
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 !

Re: RFLink: Error opening serial port!

Posted: Monday 09 September 2019 22:13
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

Re: RFLink: Error opening serial port!

Posted: Tuesday 24 March 2020 21:24
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.