Page 1 of 1

Installing cp210x driver

PostPosted: Fri Dec 13, 2019 5:39 pm
by santtu1980
I want to use Aeotec Zstick gen5 with mys asustor and domoticz app, but the stick is not visible on domoticz apps hardware page.
The stick is visible terminal
Code: Select all
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation:2.0 root hub
-->Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc.:Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 003: ID 125f:601a A-DATA Technology Co., Ltd.:unknown device 601a
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation:3.0 root hub
Bus 001 Device 002: ID 03f0:0024 HP, Inc:KU-0316 Keyboard

that does not mean that it is usable in domoticz?

Is there possibility to install the cp210x driver to Asustor to add support for the usb serial conversion??

Re: Installing cp210x driver

PostPosted: Sat Dec 14, 2019 4:02 am
by father.mande
Hi,

Please, can you precise model and Linux version ... (uname -a)

Philippe.

Re: Installing cp210x driver

PostPosted: Sun Dec 22, 2019 9:10 pm
by santtu1980
Hi,
Hope this helps.
Linux sammio 4.14.x #1 SMP Tue Oct 29 00:39:17 CST 2019 x86_64 GNU/Linux
Sammio is the name of my NAS device. So I assume Linux verison is 4.14.x
Hardware: AS3102T
ADM ver.:3.4.4.RAT2
Bios ver.: 2.23

Answering took some time cos didn't receive the notification about your reply...

Re: Installing cp210x driver

PostPosted: Sun Dec 22, 2019 11:13 pm
by father.mande
Hi,

Please find attach module for 4.1.4.x
... extract the tar file somewhere : tar xf cp210.ko.tar
... use modprobe or insmod to load it
... tested on AS5002T, x86_64, ADM 3.4.5.RBJ3 (but kernel is same)

cp210x.ko.tar
Module for x86_64 Kernel 4.14.X
(370 KiB) Downloaded 367 times


Philippe.
NB if it's working ... add insmod in start-stop.sh of domoticz

Re: Installing cp210x driver

PostPosted: Mon Dec 23, 2019 3:37 am
by santtu1980
Thanks a lot!
Tried to do that and now lsmod lists:

cp210x 24576 0 - Live 0xffffffffa04c9000

Still the domosticz does not show my /dev/ttyAMC0

Moreover cannot edit ./volume1/.@plugins/AppCentral/domoticz-docker/CONTROL/start-stop.sh

Re: Installing cp210x driver

PostPosted: Mon Dec 23, 2019 2:55 pm
by father.mande
Hi,

I have nothing to test ... so

1 please provide "dmesg" command (Linux system log) after loading the module and plug the hardware (or reverse)

2 verify if /dev/ttyAMC0 exist and the access right
do : ls -ali /dev/ttyAMC0 and adapt right if need : chmod 666 /dev/ttyAMC0

3 write the error when you edit, be sure (to limit problem) to be connected as root / your_admin_password and not with admin user

4 I don't know when domoticz check USB peripheral ... so please do a refresh / actualize if exist or restart domoticz when tty exist

5 verify if domoticz don't require a specific extra module to use your stick and be sure to use the last version (internal update using posts provide here)

Philippe.

Re: Installing cp210x driver

PostPosted: Wed Jan 15, 2020 1:39 pm
by santtu1980
Somebody has been informed! A new version (v4.11605.r1) of Domoticz has been released!
And the reason is in the changelog: "- Add "/dev" folder binding to support Z-Wave/Z-Stick USB devices"
So everything works well now. Except...
There are only a few usb ports in the Asustor NAS so is it possible to use USB hub to connect different hardware to NAS and domoticz? I've put a Z-Stick and usb/serial-cable from geothermal heat pump with Rego motherboard to same USB hub and now there are only /dev/ttyACM0 port to select. And the error log contains:
2020-01-15 07:09:57.912 Status: Rego6XX: Using serial port: /dev/ttyACM0
2020-01-15 07:12:20.927 Error: Rego6XX: Reopening serial port
The Z-Stick still works.

FYI, Nice to know and Offtopic:
There are a new version of the Home Assistant software too with exact the same changelog text!
Home Assistant v0.103.6.r1
- Add "/dev" folder binding to support Z-Wave/Z-Stick USB devices.

Re: Installing cp210x driver

PostPosted: Wed Jan 15, 2020 3:07 pm
by father.mande
Hi,
santtu1980 wrote:There are only a few usb ports in the Asustor NAS so is it possible to use USB hub to connect different hardware to NAS and domoticz? I've put a Z-Stick and usb/serial-cable from geothermal heat pump with Rego motherboard to same USB hub and now there are only /dev/ttyACM0 port to select. And the error log contains:


Hi,
I use all the time USB Hub ... to connect multiple hardware (even not Z-stick)
BUT as usual, take time to verify if USB device is used (lsusb command), some time a simple Hub without power is not enough (depend of NAS hardware and model), so best is using a powered Hub
The second point is access right ... due to the fact that Asustor don't use udev in A.D.M. (only partial when Xorg is installed so only for x86_-64) access is incorrect, verify it and change it (if it works, after you can incorporate the change in domoticz start script.

Philippe.