Page 1 of 1

[SOLVED] The serial port does not appear in the drop-down list.

Posted: Tuesday 23 January 2024 14:06
by JeanBonnot
Hi all,

The serial port, which is functional from the system, does not appear in the list of usable serial ports ( other ports appear ).
By manually entering the serial port name ( /dev/ttyS1 ) in the database ( for Teleinfo hardware ), it works perfectly.

Why doesn't this port appear? And what can I do to get it listed?

Thanx

System :
orange pi 5
OS :
armbian
Debian GNU/Linux 11 (bullseye)
Ubuntu
22 . 04 . 3 LTS (Jammy Jellyfish)

domoticz:
Version: 2024 .1 (build 15792)
Build Hash: 36a973a7e-modified
Compile Date: 2024-01-01 16:29:36
dzVents Version: 3 . 1 . 8
Python Version: 3 . 10 .12 (main, Nov 20 2023, 15:14:05) [GCC 11 . 4 . 0]

Re: The serial port does not appear in the drop-down list.

Posted: Tuesday 23 January 2024 19:07
by waltervl
I believe Domoticz only list ttyUSB, ttyACM or serial/by-id devices. Did you create that serial port name yourself?

Re: The serial port does not appear in the drop-down list.

Posted: Wednesday 24 January 2024 9:24
by JeanBonnot
@waltervl : Thx for reply and yes, i have 'created' this port manually

Re: The serial port does not appear in the drop-down list.

Posted: Wednesday 24 January 2024 16:56
by gizmocuz
Okey.... How did you connect the serial port? Directly on the raspberry pi pins?
In this case, it's indeed not detected as a USB device
You can make a hard link to /dev/ttyUSBS1 yourself

Otherwise, get yourself a USB->232 TTL cable?
https://nl.aliexpress.com/item/1005005199384872.html

Re: The serial port does not appear in the drop-down list.

Posted: Thursday 25 January 2024 8:22
by JeanBonnot
@gizmocuz thx for helping, but ..
the serial port works perfectly, the only small problem is that it is not listed in the list of usable serial ports.

I fixed the problem by adding a symlink in /dev/serial/by-id :

Code: Select all

~sudo ln -s /dev/ttyS1 /dev/serial/by-id/ttyS1_GPIO
Now the serial port appears as ttyS1_GPIO 8-)
serial-gpio.png
serial-gpio.png (51.95 KiB) Viewed 5338 times