It is currently Sat Sep 19, 2020 4:35 am
All times are UTC + 8 hours

Installing cp210x driver

home automation

Installing cp210x driver

Postby santtu1980 » Fri Dec 13, 2019 5:39 pm

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
santtu1980
 
Posts: 4
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Postby father.mande » Sat Dec 14, 2019 4:02 am

Hi,

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

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1023
Joined: Sat Sep 12, 2015 2:55 am

Re: Installing cp210x driver

Postby santtu1980 » Sun Dec 22, 2019 9:10 pm

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
santtu1980
 
Posts: 4
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Postby father.mande » Sun Dec 22, 2019 11:13 pm

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 368 times


Philippe.
NB if it's working ... add insmod in start-stop.sh of domoticz
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1023
Joined: Sat Sep 12, 2015 2:55 am

Re: Installing cp210x driver

Postby santtu1980 » Mon Dec 23, 2019 3:37 am

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
santtu1980
 
Posts: 4
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Postby father.mande » Mon Dec 23, 2019 2:55 pm

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.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1023
Joined: Sat Sep 12, 2015 2:55 am

Re: Installing cp210x driver

Postby santtu1980 » Wed Jan 15, 2020 1:39 pm

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
santtu1980
 
Posts: 4
Joined: Fri Dec 13, 2019 5:34 pm

Re: Installing cp210x driver

Postby father.mande » Wed Jan 15, 2020 3:07 pm

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.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1023
Joined: Sat Sep 12, 2015 2:55 am

Return to Domoticz

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 0 guests