Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

Hello, when I restore my DB on my new NAS DS718+ I have this error: 'Error sending switch command, check device/hardware (idx=nnn) !' may be the 'Error opening serial port is the cause'. But why ? /dev/ttyUSB0 is done for the RFXcom. Thank's for your help
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by waltervl »

Did you set the USB device correctly in menu Setup - Hardware - RFLink?
It probably changed name when using another Synology.
Is the USB driver working on your new Synology?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

Yes, for me RFXtrx433XL is correctly set :
Vue 1.jpg
Vue 1.jpg (43.86 KiB) Viewed 1033 times
and USB is activated at reboot by a scheduler task.
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by waltervl »

So when do you get this error? What device is IDX=nnn? Is it related to Rfxcom?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

Errors from Lamps & Switches (RFXcom)
Vue 2.jpg
Vue 2.jpg (116.02 KiB) Viewed 1027 times

No update for these devices (Water meter X10 RFXcom)
Vue 3.jpg
Vue 3.jpg (70.42 KiB) Viewed 1027 times

View log with errors serial port and JSON
Vue 4.jpg
Vue 4.jpg (330.95 KiB) Viewed 1027 times
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by waltervl »

Yes there seems to be a communication error with your USB device. I am not familiar with Synology but it seems that on newer Linux environments you have usb devices by IDwhat do you see when you open the Port pull down list from the hardware setting? Do you see more USB devices next to ttyUSB0?

The Dzvents error can be solved by setting your security settings correctly, especially trusted networks and switch on basic auth over http. https://www.domoticz.com/wiki/Security
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

I only saw /dev/ttyUSB0 nothing else !

When I list tty on the 2 NAS USB was 1-1 on DS215 but 3-1 on DS718.
May be it is the problem because DS215 have only 2 usb ports while DS718 have 3.
Vue 5 NAS DS215+.jpg
Vue 5 NAS DS215+.jpg (230.2 KiB) Viewed 1000 times

Vue 6 NAS DS718+.jpg
Vue 6 NAS DS718+.jpg (107.98 KiB) Viewed 1000 times
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by waltervl »

what do you see using

Code: Select all

ls -al /dev/serial/by-id
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

Too bad the /Dev/serial/ directory is for new Linuxes but not mine.

Does this correspond to your request?
Vue 7.jpg
Vue 7.jpg (52.62 KiB) Viewed 986 times
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
User avatar
waltervl
Posts: 5855
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by waltervl »

I am out of options..... I hope somebody with a Synology will come by.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
PieterS
Posts: 197
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by PieterS »

Congrats with your new Syno. I run Domoticz on a DS718 for years.

Two questions:

1: Can you tell us what version of DSM you run? 6.2 or 7.1
2: Are you running Domoticz in a Docker container?
Synology with Domoticz build (V2024.7) in Docker
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

@PieterS I installed the latest DSM 7.1 and yes Domoticz is under docker
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
boggiz
Posts: 46
Joined: Thursday 07 March 2019 11:40
Target OS: NAS (Synology & others)
Domoticz version: 2024.4
Location: France
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by boggiz »

... but on my DS215 Domoticz (jadhal) is installed on DSM 6.2.4
NAS Syno DS718+ with 12Go ram
RFXtrx433XL v1044 with 3dBi antenna
Domoticz 2024.4 on Docker
TFA rain gauge, 4 ways automatic watering program, LINKY consumption, waterflow counter
PieterS
Posts: 197
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Restore from 2020.2 (on DS215+) to 2023.1 (on DS718+) : Error opening serial port !

Post by PieterS »

Your model was orginally delivered with DSM 6.2.. Updating to DSM 7.0 gave the "famous" problem you have.

In the WIKI of Domoticz ( https://www.domoticz.com/wiki/Synology) there is an article how to solve your problem. I suggest you should have a look there. There is a link to https://github.com/robertklep/dsm7-usb-serial-drivers which seems hopefull to me.

As my Synology is still on 6.2 I cannot help you further on this subject. The problem you describe was the reason for me not to upgrade in the past. Maybe you can downgrade?

Good luck anyway.
Synology with Domoticz build (V2024.7) in Docker
User avatar
Marathon2010
Posts: 37
Joined: Tuesday 02 February 2021 23:02
Target OS: NAS (Synology & others)
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Restore from 2020 (on DS215+) to 2023 (on DS718+) : Error opening serial port !

Post by Marathon2010 »

Did perform an upgrade on my DS920+ from DSM 6 to DSM 7. Faced two issues: 1) USB (for Z-wave and P1) like above not available and 2) Mosquitto not running. Implemented the solution of Bearded Thinker for USB (Search on YouTube for a video) and both are running fine now. For Mosquitto did a full remove (including data) and did a clean install of the new package. Also working fine.
Running Domiticz and Zwave-JSMQTT both under Docker.

Sneak preview:
/sbin/modprobe usbserial
/sbin/modprobe ftdi_sio
/sbin/modprobe cdc-acm
Synology NAS DS920+ DSM7 (Docker) | Integrations: Audio, Heating, Gas, Electricity, Water, Alarm, Car, Camera, Doorbell, Garage | SW: Tasmota, DzVents, Pushbullet | Plugins: GPSLogger, BatteryLevel, Hyundai KIA, Rhasspy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest