Installing cp210x driver

home automation

Moderator: Lillian.W@AST

santtu1980
Posts: 6
youtube meble na wymiar Warszawa
Joined: Fri Dec 13, 2019 5:34 pm

Installing cp210x driver

Post 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??
Hardware: AS3102T || AS-202TE
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Installing cp210x driver

Post by father.mande »

Hi,

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

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
santtu1980
Posts: 6
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Post 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...
Hardware: AS3102T || AS-202TE
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Installing cp210x driver

Post 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
Philippe.
NB if it's working ... add insmod in start-stop.sh of domoticz
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
santtu1980
Posts: 6
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Post 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
Hardware: AS3102T || AS-202TE
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Installing cp210x driver

Post 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.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
santtu1980
Posts: 6
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Post 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.
Hardware: AS3102T || AS-202TE
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Installing cp210x driver

Post 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.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
_evilpanda_
Posts: 7
Joined: Sun Jul 05, 2020 3:44 pm

Re: Installing cp210x driver

Post by _evilpanda_ »

Sorry to revive an old thread but I have a similar issue trying to get a Sonoff dongle working with Home Assistant - https://forum.asustor.com/viewtopic.php?f=194&t=12900

Would it be possible to get an updated version of cp210x driver to see if this helps me out?

Info is:
Linux _NAS 5.4.x #1 x86_64 GNU/Linux
ADM 4.0.5.RT42
AS5304T
BIOS Version: V1.19
BIOS Revision: 1.25
Last edited by _evilpanda_ on Thu May 26, 2022 9:15 am, edited 1 time in total.
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Installing cp210x driver

Post by father.mande »

Hi,

I have posted a version for kernel 5.4.x in the forum after a request ... search somewhere ...

I again :roll: post it :
cp210x.tgz
:)
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Domoticz”