It is currently Mon Jun 27, 2022 1:10 pm
All times are UTC + 8 hours

Installing cp210x driver

home automation

Re: Installing cp210x driver

Postby _evilpanda_ » Thu May 26, 2022 9:17 am

Thanks Phillipe! This has solved it - I did search but could only find the 4.1.4 kernel version listed here (which didn't work).
_evilpanda_
 
Posts: 6
Joined: Sun Jul 05, 2020 3:44 pm

Re: Installing cp210x driver

Postby thanhroe » Tue Jun 14, 2022 4:06 pm

father.mande wrote: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.

Hi bro,

I have the problem with zigbee2mqtt : "Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)".
Pls help. Thanks
thanhroe
 
Posts: 3
Joined: Wed Jun 01, 2022 3:45 pm

Re: Installing cp210x driver

Postby father.mande » Tue Jun 14, 2022 9:45 pm

Hi,
thanhroe wrote:Hi bro,
I have the problem with zigbee2mqtt : "Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)".
Pls help. Thanks


No idea, please provide dmesg, BUT if "get started" in zigbee2mqtt is correct (again no idea) the driver require is NOT CP210x but CH341 (also provide before ex. used in Octoprint APKG (generated by me) ... and used by me for my own 3D printer requiring this interface).

Verify that it's the real problem (first page of get started in zibee2mqtt site, if yes search it in the forum, or ask me, if I have time, I can put it here (IF IT'S the problem).
extract of get started ... in zibee2mqtt site :
Code: Select all
After you plug the adapter in see the dmesg output to find the device location:

$ sudo dmesg

...
usbcore: registered new interface driver ch341
usbserial: USB Serial support registered for ch341-uart
ch341 3-1:1.0: ch341-uart converter detected
usb 3-1: ch341-uart converter now attached to ttyUSB0

SO search for ch341 ...

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

Re: Installing cp210x driver

Postby thanhroe » Wed Jun 15, 2022 11:17 am

father.mande wrote:Hi,
thanhroe wrote:Hi bro,
I have the problem with zigbee2mqtt : "Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)".
Pls help. Thanks


No idea, please provide dmesg, BUT if "get started" in zigbee2mqtt is correct (again no idea) the driver require is NOT CP210x but CH341 (also provide before ex. used in Octoprint APKG (generated by me) ... and used by me for my own 3D printer requiring this interface).

Verify that it's the real problem (first page of get started in zibee2mqtt site, if yes search it in the forum, or ask me, if I have time, I can put it here (IF IT'S the problem).
extract of get started ... in zibee2mqtt site :
Code: Select all
After you plug the adapter in see the dmesg output to find the device location:

$ sudo dmesg

...
usbcore: registered new interface driver ch341
usbserial: USB Serial support registered for ch341-uart
ch341 3-1:1.0: ch341-uart converter detected
usb 3-1: ch341-uart converter now attached to ttyUSB0

SO search for ch341 ...

Philippe.


This is log file of dmesg and z2m . Please help check .

Thanks
Attachments
dmesg_and_z2m_log.zip
(17.88 KiB) Downloaded 10 times
thanhroe
 
Posts: 3
Joined: Wed Jun 01, 2022 3:45 pm

Re: Installing cp210x driver

Postby father.mande » Wed Jun 15, 2022 2:25 pm

Hi,

Nothing clear
seem you used docker ... is it for this application ? if yes dmesg is not useful ... in all case the containers in your system is badly (as usual for docker) configured (error reported) and network used a veth link between host and containers ... the lazy solution :roll:
BUT if application run in a containers, reason are not explicated (as in a "normal" Linux or as in a correctly build container ... )

reason 1 : the driver is not present ... so test using ch341
reason 2 : driver cp210x is correct ... so it's the access to device from the container have the problem, ex. as in dmesg some resource are not correctly configured (cgroup, etc.)
reason 3 : another problem not visible with only your log

I am not support ... so my help is very limited, please ask Asustor support and creator of the container ... I have write docker containers and some document like how-to ... but stop ... too many lack and no possibility to know exactly what docker engine do itself ... so no quality process.

Philippe.
NB if you don't retreive ch431 module I will put it here on your request ... after ... do it yourself.

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

Re: Installing cp210x driver

Postby thanhroe » Wed Jun 15, 2022 2:36 pm

father.mande wrote:Hi,

Nothing clear
seem you used docker ... is it for this application ? if yes dmesg is not useful ... in all case the containers in your system is badly (as usual for docker) configured (error reported) and network used a veth link between host and containers ... the lazy solution :roll:
BUT if application run in a containers, reason are not explicated (as in a "normal" Linux or as in a correctly build container ... )

reason 1 : the driver is not present ... so test using ch341
reason 2 : driver cp210x is correct ... so it's the access to device from the container have the problem, ex. as in dmesg some resource are not correctly configured (cgroup, etc.)
reason 3 : another problem not visible with only your log

I am not support ... so my help is very limited, please ask Asustor support and creator of the container ... I have write docker containers and some document like how-to ... but stop ... too many lack and no possibility to know exactly what docker engine do itself ... so no quality process.

Philippe.
NB if you don't retreive ch431 module I will put it here on your request ... after ... do it yourself.

Philippe.


Yes, I used docker.
I will try ch431 .
Thanks
thanhroe
 
Posts: 3
Joined: Wed Jun 01, 2022 3:45 pm

Re: Installing cp210x driver

Postby father.mande » Wed Jun 15, 2022 8:20 pm

Hi,

In case ... module for kernel 5.4.x
ch341.tgz
ch431.ko
(116.6 KiB) Downloaded 11 times


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

Re: Installing cp210x driver

Postby Plasmoid » Sun Jun 26, 2022 5:49 am

father.mande wrote: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.


Thanks Philippe! I was compiling the kernel module but it kept giving me errors when I loaded it.

What did you do to compile the module?
Plasmoid
 
Posts: 2
Joined: Sun Jun 26, 2022 5:44 am

Re: Installing cp210x driver

Postby father.mande » Sun Jun 26, 2022 3:27 pm

Hi Plasmoid,

Hum! ... in fact I don't think while doing it ... I do it ... especially for modules in kernel tree ? :roll: ;)

Please, just wait for few days (I am in travel and move frequently) without time to verify my process. and try to list some phases I run and why I choice environment for each phase.
In all case support can also help you, I suppose, even it's not in the core of A.D.M. delivery.
or high specialist of Linux present on the forum can also help you ...

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

Previous

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 1 guest