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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
JeanBonnot
Posts: 8
Joined: Tuesday 22 October 2019 17:22
Target OS: Linux
Domoticz version: 2024.1
Location: France
Contact:

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

Post 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]
Last edited by JeanBonnot on Thursday 25 January 2024 8:29, edited 4 times in total.
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

I believe Domoticz only list ttyUSB, ttyACM or serial/by-id devices. Did you create that serial port name yourself?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
JeanBonnot
Posts: 8
Joined: Tuesday 22 October 2019 17:22
Target OS: Linux
Domoticz version: 2024.1
Location: France
Contact:

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

Post by JeanBonnot »

@waltervl : Thx for reply and yes, i have 'created' this port manually
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post 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
Quality outlives Quantity!
User avatar
JeanBonnot
Posts: 8
Joined: Tuesday 22 October 2019 17:22
Target OS: Linux
Domoticz version: 2024.1
Location: France
Contact:

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

Post 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 5336 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest