I have connected a brand new CC2531 USB dongle to a Paspberry Pi 3. What do I need to do to make the device show up as /dev/ttyACM0 ?
This is Raspberry Pi:
pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux
Before inserting the CC2531 USB dongle:
pi@raspberrypi:~ $ ls -alF /dev/ttyA* crw-rw---- 1 root dialout 204, 64 Jul 26 20:39 /dev/ttyAMA0
After inseting the CC2531 USB dongle:
pi@raspberrypi:~ $ ls -alF /dev/ttyA* crw-rw---- 1 root dialout 204, 64 Jul 26 20:39 /dev/ttyAMA0
No change. /dev/ttyACM0 is still missing, even though it is recogniced as a USB device:
pi@raspberrypi:~ $ dmesg | tail -5 [ 394.133095] usb 1-1.2: new full-speed USB device number 4 using dwc_otg [ 394.247583] usb 1-1.2: New USB device found, idVendor=0451, idProduct=16ae [ 394.247604] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 394.247617] usb 1-1.2: Product: CC2531 USB Dongle [ 394.247630] usb 1-1.2: Manufacturer: Texas Instruments pi@raspberrypi:~ $ lsusb Bus 001 Device 004: ID 0451:16ae Texas Instruments, Inc. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Without success, I also tried this 'modprobe':
pi@raspberrypi:~ $ sudo modprobe usbserial vendor=0x0451 product=0x16ae
pi@raspberrypi:~ $ dmesg | tail -5 [ 2534.334153] usbcore: registered new interface driver usbserial [ 2534.334225] usbcore: registered new interface driver usbserial_generic [ 2534.334277] usbserial: USB Serial support registered for generic [ 2534.334365] usbserial_generic 1-1.2:1.0: Generic device with no bulk out, not allowed. [ 2534.334392] usbserial_generic: probe of 1-1.2:1.0 failed with error -5
pi@raspberrypi:~ $ lsmod
Module Size Used by
usbserial 22115 0
bnep 10340 2
hci_uart 17943 1
btbcm 5929 1 hci_uart
bluetooth 326105 22 bnep,btbcm,hci_uart
brcmfmac 186343 0
brcmutil 5661 1 brcmfmac
cfg80211 427855 1 brcmfmac
rfkill 16037 4 cfg80211,bluetooth
snd_bcm2835 20511 1
snd_pcm 75698 1 snd_bcm2835
snd_timer 19160 1 snd_pcm
bcm2835_gpiomem 3040 0
snd 51844 5 snd_bcm2835,snd_timer,snd_pcm
bcm2835_wdt 3225 0
uio_pdrv_genirq 3164 0
uio 8000 1 uio_pdrv_genirq
i2c_dev 5859 0
fuse 83461 3
ipv6 347530 50
pi@raspberrypi:~ $ ls -alF /dev/ttyA* crw-rw---- 1 root dialout 204, 64 Jul 26 20:39 /dev/ttyAMA0
I also tried this 'modprobe, without success:
pi@raspberrypi:~ $ sudo modprobe -r usbserial
pi@raspberrypi:~ $ sudo modprobe cdc_acm vendor=0x0451 product=0x16ae
pi@raspberrypi:~ $ dmesg | tail -5 [ 3757.362219] usbcore: deregistering interface driver usbserial [ 3770.778824] cdc_acm: unknown parameter 'vendor' ignored [ 3770.778839] cdc_acm: unknown parameter 'product' ignored [ 3770.779170] usbcore: registered new interface driver cdc_acm [ 3770.779176] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
pi@raspberrypi:~ $ lsmod
Module Size Used by
cdc_acm 17370 0
bnep 10340 2
hci_uart 17943 1
btbcm 5929 1 hci_uart
bluetooth 326105 22 bnep,btbcm,hci_uart
brcmfmac 186343 0
brcmutil 5661 1 brcmfmac
cfg80211 427855 1 brcmfmac
rfkill 16037 4 cfg80211,bluetooth
snd_bcm2835 20511 1
snd_pcm 75698 1 snd_bcm2835
snd_timer 19160 1 snd_pcm
bcm2835_gpiomem 3040 0
snd 51844 5 snd_bcm2835,snd_timer,snd_pcm
bcm2835_wdt 3225 0
uio_pdrv_genirq 3164 0
uio 8000 1 uio_pdrv_genirq
i2c_dev 5859 0
fuse 83461 3
ipv6 347530 50
pi@raspberrypi:~ $ ls -alF /dev/ttyA* crw-rw---- 1 root dialout 204, 64 Jul 26 20:39 /dev/ttyAMA0
Still missing. by the way, my project is to run the precompiled binary servers lanched by 'zigbeeHAgw' on the Raspberry Pi, but first I must find out how to make the device show up as /dev/ttyACM0 , i.e. a modem with the abstract control model.
Suggestions, anyone?