cdc_acm driver available?

Marvell Kirkwood based
Post Reply
lucaswiersma
Posts: 24
Joined: Sun Feb 05, 2017 12:55 pm

cdc_acm driver available?

Post by lucaswiersma » Mon Feb 12, 2018 7:37 pm

Hi,

I have been using my nas for a while just as a storage system and to do some torrent downloading. Also I have been experimenting with using domoticz icm with a P1 cable to read out my electricity and gas meter. This last project kinda failed because I could not get any readings.

Recently I got my hands on a Z wave USB stick so I'd figured to see if I could get this working in combination with domoticz to see if this can be a nice cheap start for some home automation. I plugged in the device and in the dmesg log I can see that it is found. However recognising the device not much else happens. I suspect this is because a lack of drivers. The device was previously used on a raspberry pi and there it was instantly recognized and "installed". From the logs there I can see that it uses the cdc_acm driver.

Now for my real question. Is this driver available in any of the packages we can install on the Zyxel machines? (I have a NSA310s) I suspect when I install this driver the device will work

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: cdc_acm driver available?

Post by barmalej2 » Tue Feb 13, 2018 7:50 am

Afaik it wasn't before:

Code: Select all

mkdir -p /ffp/lib/modules/2.6.31.8/kernel/drivers/usb/class
cd /ffp/lib/modules/2.6.31.8/kernel/drivers/usb/class
/ffp/bin/wget 'http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/drivers/2.6.31.8/cdc-acm.ko'
/ffp/sbin/depmod -a
mknod /dev/ttyACM0 c 166 0
mknod /dev/ttyACM1 c 166 1
mknod /dev/ttyACM2 c 166 2
mknod /dev/ttyACM3 c 166 3
mknod /dev/ttyACM4 c 166 4
Start udev daemon service if not running. Plug USB.

lucaswiersma
Posts: 24
Joined: Sun Feb 05, 2017 12:55 pm

Re: cdc_acm driver available?

Post by lucaswiersma » Tue Feb 13, 2018 11:23 am

Thanks I will try this tonight when I'm home.

lucaswiersma
Posts: 24
Joined: Sun Feb 05, 2017 12:55 pm

Re: cdc_acm driver available?

Post by lucaswiersma » Tue Feb 13, 2018 7:59 pm

Thanks it worked like a charm!

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: cdc_acm driver available?

Post by barmalej2 » Wed Feb 14, 2018 6:23 am

You're welcome.

greenwitch
Posts: 24
Joined: Sun Feb 26, 2017 10:09 pm

Re: cdc_acm driver available?

Post by greenwitch » Sun Mar 11, 2018 9:34 pm

Hello,

I also wanted to use my domoticz on Zyxel NAS542 with z-wave module.
I have purchased Aeotec Z-Stick Gen5 https://www.amazon.com/Aeotec-Z-Stick-Z ... B00X0AWA6E.
But i have an issue.
When I connect it to nas there is no message in dmesg.
I have run udev - no change.

When I connect z-wave module to rpi I have following log from dmesg:

Code: Select all

[122228.935876] usb 1-1.5: new full-speed USB device number 7 using dwc_otg
[122229.069165] usb 1-1.5: New USB device found, idVendor=0658, idProduct=0200
[122229.069180] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[122229.072326] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
I think my NAS also misses cdc-acm.ko module.
I have kernel

Code: Select all

root@NAS542:/ffp/start# uname -r
3.2.54
Has anybody compiled it already for that kernel or can give a me any clue how to compile it.
I do not think I have to crosscompile it on PC. I should be able to compile it on my nas.
https://www.domoticz.com/forum/viewtopi ... 7&start=60

Adam

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: cdc_acm driver available?

Post by Mijzelf » Mon Mar 12, 2018 8:34 am

The package zyxel-modules-3.2.54_1_armv7soft.ipk contains a cdc-acm.ko.

greenwitch
Posts: 24
Joined: Sun Feb 26, 2017 10:09 pm

Re: cdc_acm driver available?

Post by greenwitch » Mon Mar 12, 2018 7:38 pm

Hello.

So I have downloaded ipk, get the file cdc-acm.ko, put it in the folder:
/ffp/lib/modules/3.2.54/kernel/drivers/usb/class

Code: Select all

root@NAS542:/ffp/lib/modules/3.2.54/kernel/drivers/usb/class# ls
cdc-acm.ko
executed commands:

Code: Select all

/ffp/sbin/depmod -a
mknod /dev/ttyACM0 c 166 0
mknod /dev/ttyACM1 c 166 1
mknod /dev/ttyACM2 c 166 2
mknod /dev/ttyACM3 c 166 3
mknod /dev/ttyACM4 c 166 4
started udev:

Code: Select all

[261194.750207] udevd[4112]: starting version 3.2.1
rebooted NAS and still device is not found in dmesg and of course not in /dev/
what is worrying me is that in dmesg there is no device found.
I have conencted it to my router with openwrt and it was found:

Code: Select all

[105098.397122] usb 1-1.2: new full-speed USB device number 4 using fsl-ehci
and on nas nothing.
When I connect pendrive it is working correctly:

Code: Select all

[  806.541393] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0008
[  806.541688] hub 1-1:1.0: port 3, status 0101, change 0001, 12 Mb/s
[  806.699428] hub 1-1:1.0: debounce: port 3: total 100ms stable 100ms status 0x101
[  806.789376] usb 1-1.3: new high-speed USB device number 3 using xhci-hcd
[  806.809656] usb 1-1.3: default language 0x0409
[  806.813680] usb 1-1.3: udev 3, busnum 1, minor = 2
[  806.813690] usb 1-1.3: New USB device found, idVendor=13fe, idProduct=4100
[  806.821675] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  806.830392] usb 1-1.3: Product: GOODRAM 16GB
[  806.836062] usb 1-1.3: Manufacturer: Wilk
[  806.841483] usb 1-1.3: SerialNumber: 07103B45F115CD28
[  806.849061] usb 1-1.3: usb_probe_device
[  806.849079] usb 1-1.3: configuration #1 chosen from 1 choice
[  806.849213] usb 1-1.3: Successful Endpoint Configure command
[  806.849306] usb 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)
[  806.849814] usb-storage 1-1.3:1.0: usb_probe_interface
[  806.849835] usb-storage 1-1.3:1.0: usb_probe_interface - got id
[  806.857666] scsi4 : usb-storage 1-1.3:1.0
[  806.879628] drivers/usb/core/inode.c: creating file '003'
[  808.105437] scsi 4:0:0:0: Direct-Access     Wilk     GOODRAM 16GB     PMAP PQ: 0 ANSI: 6
[  808.129405] sd 4:0:0:0: Attached scsi generic sg2 type 0
[  809.567914] sd 4:0:0:0: [sdc] 31309824 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  809.576929] sd 4:0:0:0: [sdc] Write Protect is off
[  809.582304] sd 4:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  809.583097] sd 4:0:0:0: [sdc] No Caching mode page found
[  809.588997] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[  809.600711] sd 4:0:0:0: [sdc] No Caching mode page found
[  809.607383] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[  809.631677]  sdc: sdc1
[  809.641598] sd 4:0:0:0: [sdc] No Caching mode page found
[  809.647636] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[  809.655181] sd 4:0:0:0: [sdc] Attached SCSI removable disk
[  813.464781] FAT-fs (sdc1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Help needed :-)

Adam

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: cdc_acm driver available?

Post by Mijzelf » Mon Mar 12, 2018 8:06 pm

greenwitch wrote:rebooted NAS
Don't. It reverts everything you did. So re-do everything you did, and then test if it works.

greenwitch
Posts: 24
Joined: Sun Feb 26, 2017 10:09 pm

Re: cdc_acm driver available?

Post by greenwitch » Mon Mar 12, 2018 9:54 pm

Ok,

I provided workaround.
I use 2,5€ usb hub in the middle and it works:

Code: Select all

[ 8315.269377] usb 1-1.3: new full-speed USB device number 6 using xhci-hcd
[ 8315.289282] usb 1-1.3: ep0 maxpacket = 8
[ 8315.289312] usb 1-1.3: Successful evaluate context command
[ 8315.289986] usb 1-1.3: default language 0x0409
[ 8315.290326] usb 1-1.3: udev 6, busnum 1, minor = 5
[ 8315.290335] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0606
[ 8315.297240] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8315.304635] usb 1-1.3: Product: USB Hub 2.0
[ 8315.308943] usb 1-1.3: Manufacturer: ALCOR
[ 8315.314470] usb 1-1.3: usb_probe_device
[ 8315.314487] usb 1-1.3: configuration #1 chosen from 1 choice
[ 8315.314515] usb 1-1.3: ep 0x81 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 8315.341352] usb 1-1.3: Successful Endpoint Configure command
[ 8315.341490] usb 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)
[ 8315.342004] hub 1-1.3:1.0: usb_probe_interface
[ 8315.342018] hub 1-1.3:1.0: usb_probe_interface - got id
[ 8315.342025] hub 1-1.3:1.0: USB hub found
[ 8315.348414] hub 1-1.3:1.0: 4 ports detected
[ 8315.352674] hub 1-1.3:1.0: standalone hub
[ 8315.352683] hub 1-1.3:1.0: individual port power switching
[ 8315.352690] hub 1-1.3:1.0: individual port over-current protection
[ 8315.352700] hub 1-1.3:1.0: power on to power good time: 44ms
[ 8315.353236] usb 1-1.3: Successful Endpoint Configure command
[ 8315.359385] hub 1-1.3:1.0: local power source is good
[ 8315.359400] hub 1-1.3:1.0: enabling power on all ports
[ 8315.369944] drivers/usb/core/inode.c: creating file '006'
[ 8315.460095] hub 1-1.3:1.0: port 4: status 0101 change 0001
[ 8315.559241] hub 1-1.3:1.0: state 7 ports 4 chg 0010 evt 0000
[ 8315.559397] hub 1-1.3:1.0: port 4, status 0101, change 0000, 12 Mb/s
[ 8315.639279] usb 1-1.3.4: new full-speed USB device number 7 using xhci-hcd
[ 8315.659282] usb 1-1.3.4: ep0 maxpacket = 8
[ 8315.659317] usb 1-1.3.4: Successful evaluate context command
[ 8315.659985] usb 1-1.3.4: skipped 4 descriptors after interface
[ 8315.659998] usb 1-1.3.4: udev 7, busnum 1, minor = 6
[ 8315.660006] usb 1-1.3.4: New USB device found, idVendor=0658, idProduct=0200
[ 8315.667075] usb 1-1.3.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 8315.675295] usb 1-1.3.4: usb_probe_device
[ 8315.675310] usb 1-1.3.4: configuration #1 chosen from 1 choice
[ 8315.693383] usb 1-1.3.4: Successful Endpoint Configure command
[ 8315.693559] usb 1-1.3.4: adding 1-1.3.4:1.0 (config #1, interface 0)
[ 8315.694249] cdc_acm 1-1.3.4:1.0: usb_probe_interface
[ 8315.694268] cdc_acm 1-1.3.4:1.0: usb_probe_interface - got id
[ 8315.694277] cdc_acm 1-1.3.4:1.0: This device cannot do calls on its own. It is not a modem.
[ 8315.702763] cdc_acm 1-1.3.4:1.0: ttyACM0: USB ACM device
[ 8315.719026] usb 1-1.3.4: adding 1-1.3.4:1.1 (config #1, interface 1)
[ 8315.731470] drivers/usb/core/inode.c: creating file '007'
:D :twisted: 8-)

Post Reply